255 Colour Code Program
Author |
Message |
WhatDotColourMaster
|
Posted: Sun Dec 04, 2005 8:15 pm Post subject: 255 Colour Code Program |
|
|
I am new to this forum yet very experienced with Turing. Since I have wandered the entire site without finding a post on the colour codes on Turing i decieded to post my own.
---The New And Improved Version.
Following below copy the code and paste in Turing application and RUN.
code: |
%Colour Code Program%
%Displays all 255 colours%
View.Set ("graphics:max;max,nobuttonbar,title:Colour Codes")
var x, y, RADIUS : int := 100
RADIUS := round ((maxx / 2) ** 0.5)
x := 0 + RADIUS
y := maxy - RADIUS
%Draws circles and places numbers
for i : 0 .. maxcolour
Draw.FillOval (x, y, RADIUS, RADIUS, i)
locatexy (x, y)
put i
if x = (maxx - RADIUS * 3) or x > (maxx - RADIUS * 3) then
y -= RADIUS * 2
x := RADIUS
else
x += RADIUS * 2
end if
end for
|
Hope this helps when verifying a certain colour...I am going to post some more of my programs soon.
O yeah and if any comments or problems message me. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
[Gandalf]
|
Posted: Sun Dec 04, 2005 8:19 pm Post subject: (No subject) |
|
|
No need to post twice... Especially when there really are other programs for the same purpose. If anything you can ask a mod to move your original post...
Also, don't Tony and I deserve some credit? . |
|
|
|
|
|
Cervantes
|
Posted: Sun Dec 04, 2005 8:43 pm Post subject: (No subject) |
|
|
Things like this make me wish I could merge threads. |
|
|
|
|
|
WhatDotColourMaster
|
Posted: Sun Dec 04, 2005 8:44 pm Post subject: (No subject) |
|
|
sorry about that.... i just thought this forum makes more sense to put it in...
Regards,
WhatColourDotMaster |
|
|
|
|
|
Cervantes
|
Posted: Sun Dec 04, 2005 8:48 pm Post subject: (No subject) |
|
|
WhatDotColourMaster wrote: sorry about that.... i just thought this forum makes more sense to put it in...
It does. We could've just moved your old thread to [Turing Source Code], and that would be that. But now, I just don't know what to do. All I know is I have this strange feeling, a feeling that I described in my previous post. Aah! My head is spinning from all this confusion.
Whups. Fellover. |
|
|
|
|
|
Tony
|
Posted: Sun Dec 04, 2005 8:50 pm Post subject: (No subject) |
|
|
And you still haven't aknowledged the use of code provided by [Gandalf] and I. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
WhatDotColourMaster
|
Posted: Mon Dec 05, 2005 3:53 pm Post subject: (No subject) |
|
|
Quote: And you still haven't aknowledged the use of code provided by [Gandalf] and I.
Sorry about that I hope no one was offended, I am new at this forum.
My acknowledgements go to both Tony and Gandalf who both contributed to make the 255 Colour Code program a success. |
|
|
|
|
|
|
|