I'm writing a pointless program to start learning about how the GPU api works. It's basically a shrinking and expanding square that changes the border colour and inner square colour every update.
I'm wondering if there is a trivial way to cycle through all the colours starting from black to white, and in reverse, as below.
Link below is what I have so far, unfortunately it hasn't got many comments, and my code is probably pretty noobish. I noticed that the top tier screens are capable of only 8 bit colour, but I seem to need to use up to 16mil+ to get access to get all the possible colours.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I'm writing a pointless program to start learning about how the GPU api works. It's basically a shrinking and expanding square that changes the border colour and inner square colour every update.
I'm wondering if there is a trivial way to cycle through all the colours starting from black to white, and in reverse, as below.
Link below is what I have so far, unfortunately it hasn't got many comments, and my code is probably pretty noobish. I noticed that the top tier screens are capable of only 8 bit colour, but I seem to need to use up to 16mil+ to get access to get all the possible colours.
http://pastebin.com/UKXtPNDt
Anyone able to tell me where I'm going wrong, I know I'm not even close.
Cheers,
Dara
Link to post
Share on other sites