Strange colours using DrawCircle() in Flash

Monkey Targets Forums/Flash/Strange colours using DrawCircle() in Flash

Gerry Quinn(Posted 2011) [#1]
Colours that are not very bright seem to have their brightness halved in DrawCircle() on Flash. Is it just my system, or is it happening for everyone?

If I compile the following code on Flash, the circle and the rectangle come out the same colour (0, 64, 0 ), even though the circle is supposed to be (0, 128, 0 ). When I compile on HTML5 the colours are correct, i.e. the circle is much brighter than the rectangle, as it should be.




therevills(Posted 2011) [#2]
What version of Monkey are you using?

I raised this bug: http://www.monkeycoder.co.nz/Community/posts.php?topic=1861

And it was fixed in v48:

***** V48 *****

Modules:

flash mojo - fixed bug with 'dark' line/oval/poly rendering.


And another fix in v49:
***** V49 *****

Modules:

flash mojo - fixed alpha bug introduced by fix for dark rendering.



Gerry Quinn(Posted 2011) [#3]
Ah... I'm a couple behind. I have a game nearly done and the last thing I want to do in such circumstance is download new versions of dev tools (for precisely the reason that sometimes they have bugs that bite just when you're ready to release), but this time I suppose I'll have to make an exception!

(Not that I'm saying Mark usually releases buggy stuff, and in fact I should worry much less about Monkey than others because it would be so easy to revert to a previous version. It's just a general principle!)