Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Color problem in CopperCube 6

owzeaa
Registered User
Quote
2018-07-29 13:51:37

Help, when I try using color value in
ccbDrawColoredRectangle(); method only colors with alpha up to 79 work. I need a full solid red rectangle, without any transparency.
0x79ff0000 - creates red transparent rectangle
change to 80 and it doesn't show color anymore.
0x80ff0000 - creates BLACK transparent rectangle.

What am I missing here?

My actual code:
function onFrameDrawing()
{
ccbDrawColoredRectangle(0x80ff0000, 5, 5, 1000, 1000);
}

ccbRegisterOnFrameEvent(onFrameDrawing);


Should I make more calls to ccbDrawColoredRectangle to overlap transparency? How to use this method properly? Or is it broken, perhaps?


niko
Moderator
Quote
2018-07-30 07:29:14

It could be that javascript color propagation is somehow broken, yes. I'll have a closer look, but you could work around this using overlapping for now.


smartbro
Guest
Quote
2018-08-23 12:40:21

just curious, so this was not included in 6.0.1?


niko
Moderator
Quote
2018-08-24 09:07:47

Yes, no, sorry. That only fixed the most important things, this is still on my list for the following update.


smartbro
Guest
Quote
2018-08-26 05:35:18

nice, thanks niko.


Create reply:


Posted by: (you are not logged in)


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