Re: Explination of a spiral

From: Rob Kennedy (.)
Date: 10/02/03


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


Relevant Pages

  • Re: When I type fff the first two letters are closer than the last two
    ... >>>unless you look at the pixels enlarged sixteen times. ... >> 'fff' and enlarging to the point of seeing individual pixels, ... >> an even spacing. ... I verified this by doing a screen capture using "Smart Capture v1.4.0" ...
    (microsoft.public.word.general)
  • Re: cellphone camera
    ... the size of the detector ... how do the pixels look like (spacing, aspect ratio, size) ...
    (sci.optics)
  • Re: When I type fff the first two letters are closer than the last two
    ... >>unless you look at the pixels enlarged sixteen times. ... > an even spacing. ... The inconsistent spacing is between their first and second "f" ... You must view this at 100% because zooming doesn't enlarge ...
    (microsoft.public.word.general)
  • Line to Line height?
    ... Just as Font.Height property gets the line spacing, in pixels, of the given ... font, how to calculate the same when we have an image instead of a text ...
    (microsoft.public.dotnet.languages.csharp)
  • cellphone camera
    ... the size of the detector ... how do the pixels look like (spacing, aspect ratio, size) ... answers, refs, links appreciated. ...
    (sci.optics)