Computer Science Canada The best way to choose a colour-submission |
Author: | LindenRulz [ Tue Feb 20, 2007 4:56 pm ] |
Post subject: | The best way to choose a colour-submission |
for i : 1 .. 256 %there are only 256 pre-determined colours colour (i) % makes number the same colour as the colour put i .. % puts number put " " .. % makes a space end for |
Author: | agnivohneb [ Wed Feb 21, 2007 5:35 pm ] | ||
Post subject: | Re: The best way to choose a colour-submission | ||
Actually there are only 255 colors. And this way may be better because it deals with the fact that by just adding a space you will eventually split the numbers between two lines.
You got the right idea tho. |
Author: | ericfourfour [ Wed Feb 21, 2007 6:23 pm ] | ||||
Post subject: | Re: The best way to choose a colour-submission | ||||
agnivohneb @ Wed Feb 21, 2007 5:35 pm wrote: Actually there are only 255 colors.
(Your code does not run by the way. Replace count with i.) Believe it or not, there are 256 colours. I like it this way:
|
Author: | fishtastic [ Thu Feb 22, 2007 4:05 pm ] |
Post subject: | RE:The best way to choose a colour-submission |
% try this with the code for i : 1 .. 255 drawfillbox (round (maxx / 255) * i, 0, round (maxx / 255) * i + 2, maxy, i) end for |
Author: | Abstraction [ Thu Feb 22, 2007 5:32 pm ] |
Post subject: | Re: The best way to choose a colour-submission |
Wouldn't the best reference be to simply use maxcolour instead of 255? It would improve readability, as well as eliminating assumptions....although I guess the max number of colours remains constant |
Author: | agnivohneb [ Thu Feb 22, 2007 5:57 pm ] |
Post subject: | Re: The best way to choose a colour-submission |
ericfourfour @ Wed Feb 21, 2007 6:23 pm wrote: (Your code does not run by the way. Replace count with i.)
Believe it or not, there are 256 colours. Sorry i forgot to put the i there and i also forgot about 0 being white. |
Author: | little_guy9 [ Mon Apr 16, 2007 1:03 am ] | ||
Post subject: | Re: The best way to choose a colour-submission | ||
To be honest, I prefer finding the right colour with a mouse, rather than looking through 255 numbers.
|