Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
2Doverlay with round corners?

misterpaint
Registered User
Quote
2023-06-02 01:15:16

It's possible to create 2DOverlay with round corners it is possible somehow without using images?

thank you


Guest
Guest
Quote
2023-06-02 01:19:38

You can draw any image you like with ccbDrawTextureRectangleWithAlpha() and then place your 2DOverlay overtop of it.


Guest
Guest
Quote
2023-06-02 02:56:28

Believe I read your question wrong. No you can't make a 2D Overlay a circle unfortunately.


spicymilk
Registered User
Quote
2023-06-02 04:06:38

have to use a picture a png


VP
Guest
Quote
2023-06-02 11:06:17

If you really don't want to use an image file, you could use the draw rectangle command like Guest suggested, to draw anything you want.

When you say, you can't draw a circle using the draw "rectangle" command, you can but it depends on your tenacity and patience; a very small rectangle is essentially a pixel. Every image you see on a computer screen is actually made of tiny squares.

Back in the old days, resolutions were generally much smaller so you could draw images using individual pixels. This method has become popular again in digital art and also 3D modelling and gaming, where some people prefer to use voxels.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "?nternational" (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