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

Username:   Password: 
 RegisterRegister   
 [Tutorial] whatdotcolor
Index -> Programming, Turing -> Turing Tutorials
Goto page Previous  1, 2, 3, 4
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
MysticVegeta




PostPosted: Thu May 11, 2006 5:57 pm   Post subject: (No subject)

If you look at the Turing Reference (F10) and check out the Math.Distance index, you will see they used Math.Distance for the circles, you are right.
Sponsor
Sponsor
Sponsor
sponsor
evildaddy911




PostPosted: Thu Oct 13, 2011 2:49 pm   Post subject: RE:[Tutorial] whatdotcolor

so i now know how to use whatdotcolor for every pixel in a square/ horizontal/vertical line.... but how do i use whatdotcolor for a diagonal line?

drawline (0 , 100 , 100 , 0 , black)

what is the code for this?

EDIT: figured it out:
code:

    for a : 0 .. 100
        if whatdotcolor (a, 100 - a) = blue then
            put "hit"
        end if
    end for
Hoshi




PostPosted: Thu Dec 15, 2011 9:21 am   Post subject: RE:[Tutorial] whatdotcolor

Is there a Tutorial on using RGB colours? or is that impossible to use on turing. say i wanted
R=50
G=16
B=17
for a dot
Insectoid




PostPosted: Thu Dec 15, 2011 11:30 am   Post subject: RE:[Tutorial] whatdotcolor

Yes, it's possible. There is a tutorial available in the Turing Walkthrough. Instead of asking for a tutorial next time, try using the website's built-in search.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Tutorials
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 4 of 4  [ 49 Posts ]
Goto page Previous  1, 2, 3, 4
Jump to:   


Style:  
Search: