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 / Colour conversion RGBHSV

Author
Message
Scraggle
Moderator
16
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 15th Jan 2016 07:43 Edited at: 15th Jan 2016 12:31
Hey,

This was a request for help fixing my code but I've been able to fix it myself.
So instead, below you will find the functions required for conversion between RGB and HSV (and back).

Enjoy


main:


RGB->HSV:


HSV->RGB:


UDTs:


Helper functions:
AGK V2 user - Tier 1 (mostly)
Scraggle
Moderator
16
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 15th Jan 2016 12:21
Fixed
AGK V2 user - Tier 1 (mostly)
blink0k
AGK Developer
Gold Codemaster
6
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 15th Jan 2016 21:44
these look awesome! great work

Sign up for NaGaCreMo!
IBOL
Retired Moderator
15
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 13th Feb 2016 23:02 Edited at: 28th Feb 2016 23:53
I haven't tried this with AppGameKit, but I want to thank you for posting it.
HSV colorspace is extremely useful.

edit:
yeah, ok, this totally does NOT work in AGK1
I keep fixing everything it says is wrong, but it just keeps finding more problems.

so I will have to re-write it from scratch, with my own logic.

still, it looks like a good reference

Login to post a reply

Server time is: 2019-09-19 17:22:08
Your offset time is: 2019-09-19 17:22:08