[Tutorial] whatdotcolor
Author |
Message |
MysticVegeta
|
Posted: 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
|
|
|
evildaddy911
|
Posted: 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
|
Posted: 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
|
Posted: 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. |
|
|
|
|
|
|
|