Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [AGK2 BUG] Issue with colour

Author
Message
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 24th Dec 2014 22:19
Not really a bug as such just a difference between little-endian and big-endian but you would expect this code to produce a solid red circle:


Instead it gives a red-blue gradient.
Like I said, not really a bug but worth noting that MakeColor is little-endian whereas a hex formatted colour is big-endian.

I was about to post a bug report saying that DrawEllipse had the colour parameters in the wrong order until I realised what was going on.
JimHawkins
14
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 25th Dec 2014 00:05
You're right. The RGB order isn't R-G-B on Windows expressed as a cardinal value.

-- Jim - When is there going to be a release?

Login to post a reply

Server time is: 2024-05-02 15:23:36
Your offset time is: 2024-05-02 15:23:36