Computer Science Canada How do I make this traingle flash with colors? |
Author: | aqazwsx1 [ Fri Oct 24, 2008 9:34 pm ] |
Post subject: | How do I make this traingle flash with colors? |
How do I make the triangle flash with colors? Thanks in advance. for i : 1 .. 100 drawdot (70 + i, 100 + i, red) drawdot (170 + i, 200 - i, red) drawdot (270 - i - i, 100, red) delay (5) end for |
Author: | Tony [ Fri Oct 24, 2008 9:51 pm ] | ||
Post subject: | RE:How do I make this traingle flash with colors? | ||
instead of colour "red", use another colour. Keep in mind that "red" is just a constant for an integer that represents that number
So you can use some math to take advantage of the changing value of i, instead of using if statements. |
Author: | isaiahk9 [ Sat Oct 25, 2008 7:06 am ] |
Post subject: | RE:How do I make this traingle flash with colors? |
if you wanted random colors flashing, make a random variable of a number between 1 and 255 outside of the for loop, and just call that as the color for your . . . dots? Triangle? Whatever. |