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 / [Free code T1] Colour Wheel

Author
Message
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 11th Sep 2013 17:34 Edited at: 11th Sep 2013 17:35
Hi all,

Sharing some code I made one of my projects. It's a colour wheel maker using no media. Also included in this code is a colour picker adapted from the UCF thread (I think).



The function will create a colour wheel image that can easily be used to select a colour for whatever reason. It should contain pretty much any available colour but it might be tricky to get an exact colour, therefore you should use it in conjunction with something else if you want something more exact.

Here's an example of the image produced.


"Everything should be made as simple as possible, but not simpler."

Attachments

Login to view attachments
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 11th Sep 2013 18:13
Cool! Thank you!

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Fallout
21
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 11th Sep 2013 18:38
Firstly, thanks and well done. And secondly, stop messing about with colour wheels and bring my Kingdom to life!
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 11th Sep 2013 18:50
Quote: "stop messing about with colour wheels and bring my Kingdom to life!"

I'm still working on that too

"Everything should be made as simple as possible, but not simpler."
haliop
User Banned
Posted: 12th Sep 2013 22:05
29 games
18
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: not entirely sure
Posted: 13th Sep 2013 12:46
I don't know about anyone else but it took ages to draw this on my computer

On the plus, I now know how to create sprites without having to load media first, so that's cool.

one of these days I'll come up with a better signature
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 13th Sep 2013 13:27
I am not using it to create the image every time as it's too slow. It only takes a few seconds on my machine and I'm using a 256x256 image which is plenty big enough. I am just saving it the first time and using the image file if it exists.

"Everything should be made as simple as possible, but not simpler."

Login to post a reply

Server time is: 2024-04-18 09:02:44
Your offset time is: 2024-04-18 09:02:44