
-----------------------------------
WhatDotColourMaster
Sun Dec 04, 2005 8:15 pm

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.


%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.

-----------------------------------
[Gandalf]
Sun Dec 04, 2005 8:19 pm


-----------------------------------
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
Sun Dec 04, 2005 8:43 pm


-----------------------------------
Things like this make me wish I could merge threads.

-----------------------------------
WhatDotColourMaster
Sun Dec 04, 2005 8:44 pm


-----------------------------------
sorry about that.... i just thought this forum makes more sense to put it in...

Regards,
WhatColourDotMaster

-----------------------------------
Cervantes
Sun Dec 04, 2005 8:48 pm


-----------------------------------
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 Whups.  Fellover.

-----------------------------------
Tony
Sun Dec 04, 2005 8:50 pm


-----------------------------------
And you still haven't aknowledged the use of code provided by [Gandalf] and I.

-----------------------------------
WhatDotColourMaster
Mon Dec 05, 2005 3:53 pm


-----------------------------------
And you still haven't aknowledged the use of code provided by 

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.
