Getting closer, now I have lines from top left to bottom right:
for( int x=0; x< 16384; x++ ){
draw x,y,z
I need also a y for loop?
Thanks
Michael
Michael,
You need to sit down and write your algorithm with a pencil on a piece
of paper. "I have lines from top left to bottom right" - what does that
mean? We have no idea. It's not a description of an algorithm.
Perhaps you need to think about the algorithm for a while. Perhaps you
should also look into some *formality* in your activities. So far your
posts indicate that your work is very hap-hazard. Step back from
programming for an hour and think what actions you would take if you
were the computer and you needed to accomplish whatever goal you're
setting for it.
To make tea, what do you need? You need a cup, water source, dry tea
(loose or in a bag) and a way to heat the water to the boiling point.
Water source is in the kitchen (or the bathroom). So, as part of the
algorithm for making tea you need to ensure you're in one of those
locations. To boil water you need some energy source. A microwave
would do (make sure it's plugged into an electrical outlet). And so on.
You write down preconditions, then you write down your actions. It
becomes the algorithm for accomplishing your goal.
Same thing with making calculations. Or drawing a shape. Or
controlling a nuclear reactor. You need the algorithm first, THEN you
can put it in terms of the language you've chosen to implement it.
V