Computer Science Canada Programming C, C++, Java, PHP, Ruby, Turing, VB   Username:   Password: Wiki   Blog   Search   Turing   Chat Room  Members
[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.

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.
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First

Page 4 of 4  [ 49 Posts ]
Goto page Previous  1, 2, 3, 4
 Jump to:  Select a forum  CompSci.ca ------------ - Network News - General Discussion     General Forums   -----------------   - Hello World   - Featured Poll   - Contests     Contest Forums   -----------------   - DWITE   - [FP] Contest 2006/2008   - [FP] 2005/2006 Archive   - [FP] 2004/2005 Archive   - Off Topic     Lounges   ---------   - User Lounge   - VIP Lounge     Programming -------------- - General Programming     General Programming Forums   --------------------------------   - Functional Programming   - Logical Programming   - C     C   --   - C Help   - C Tutorials   - C Submissions   - C++     C++   ----   - C++ Help   - C++ Tutorials   - C++ Submissions   - Java     Java   -----   - Java Help   - Java Tutorials   - Java Submissions   - Ruby     Ruby   -----   - Ruby Help   - Ruby Tutorials   - Ruby Submissions   - Turing     Turing   --------   - Turing Help   - Turing Tutorials   - Turing Submissions   - PHP     PHP   ----   - PHP Help   - PHP Tutorials   - PHP Submissions   - Python     Python   --------   - Python Help   - Python Tutorials   - Python Submissions   - Visual Basic and Other Basics     VB   ---   - Visual Basic Help   - Visual Basic Tutorials   - Visual Basic Submissions     Education ----------- - Student Life   Graphics and Design ----------------------- - Web Design     Web Design Forums   ---------------------   - (X)HTML Help   - (X)HTML Tutorials   - Flash MX Help   - Flash MX Tutorials   - Graphics     Graphics Forums   ------------------   - Photoshop Tutorials   - The Showroom   - 2D Graphics   - 3D Graphics     Teams ------ - dTeam Public

 Style: Appalachia blueSilver eMJay subAppalachia subBlue subCanvas subEmjay subGrey subSilver subVereor Search: