Re: Explination of a spiral
From: Rob Kennedy (.)
Date: 10/02/03
- Next message: S. Housley: "Software Marketing News"
- Previous message: name: "Re: Explination of a spiral"
- In reply to: name: "Re: Explination of a spiral"
- Next in thread: name: "Re: Explination of a spiral"
- Reply: name: "Re: Explination of a spiral"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 01 Oct 2003 17:16:49 -0500
name wrote:
>> There's something not quite right about the algorithm. In each of
>> the four FOR loops, change X and Y by spacing instead of by 1.
>
> Wow, it was clearly messed up :(
Not really. Just perfoming a lot more operations than were necessary.
With spacing = 10, pixels were only plotted every 10th X coordinate and
every 10th Y coordinate. Ninety-nine out of 100 pixels were calculated
but not drawn. Coordinates were only drawn if they were multiples of 10.
>> Then remove the MOD checks in docheck (so it's just Canvas.LineTo
>> and Sleep).
>
> Nick why were the mod checks there? To get a square spiral?
Try taking out the MOD lines and see what difference it makes. (For the
best effect, leave the rest of the function as you originally posted it.)
> [replied to sniped in another reply :)]
Ooh, does that mean we get to go hunting that snipe?
-- Rob
- Next message: S. Housley: "Software Marketing News"
- Previous message: name: "Re: Explination of a spiral"
- In reply to: name: "Re: Explination of a spiral"
- Next in thread: name: "Re: Explination of a spiral"
- Reply: name: "Re: Explination of a spiral"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|