Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Create 2d overlay programmatically

sand
Registered User
Quote
2020-11-10 19:54:33

Hi what function do use to create a 2d overlay in javascript?


frostline-et
Registered User
Quote
2020-11-11 15:15:49

This is the closest I could get to it:

ccbDrawColoredRectangle(0xff0000ff, 0, 0, 5, 5);


This creates a blue 2d rectangle in the lower left corner of the screen, 5 units tall, 5 units wide.

Syntax: First parameter is the hex color code. The next two parameters are its position onscreen. The last two parameters are the size.


sand
Registered User
Quote
2020-11-12 17:50:21

Thank you


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internationa?" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact