Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Color Codes
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
smith_scott_04




PostPosted: Sun Nov 16, 2003 10:22 pm   Post subject: Color Codes

These are the color codes, so you can see all the colors. Its on 2 different backgrounds.

code:

View.Set ("graphics:640;500")
var myrow, mycol : int %counts the rows
myrow := 1
mycol := 1
for a : 0 .. 255
    color (a)
    colorback (29)
    if mycol >= maxcol - 1 then
        myrow := myrow + 1
        mycol := 1
    end if
    locate (myrow, mycol)
    put a
    mycol := mycol + 4
end for
mycol := 1
for a : 0 .. 255
    color (0)
    colorback (a)
    if mycol >= maxcol - 1 then
        myrow := myrow + 1
        mycol := 1
    end if
    locate (myrow, mycol)
    put a
    mycol := mycol + 4
end for
Sponsor
Sponsor
Sponsor
sponsor
Dan




PostPosted: Mon Nov 17, 2003 5:19 pm   Post subject: (No subject)

Not bad, nice litte app to find color codes.

have some bits....
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: