John Horn (Home) <[EMAIL PROTECTED]>
> I have been using the draw command, to try and do a "freehand"
> tool.  The problem is that if you move the mouse to fast it appears
> as a dotted line.

Hi John,

On Windows, the mouseLoc may only be updated 40 times a second.  On Mac,
I find it updates at nearer 80 times a seconds.  In either case, if you
sweep the mouse quickly across the screen, only a few points on the
trajectory will actually be registered as far as the mouseLoc is
concerned.

To draw a continuous line, you need to join the dots.

Most paint programs join the dots with straight lines.  (I guess that
Photoshop may go as far as interpolating using B�zier curves).  The
Canvas behavior in the Paintbox palette also uses straight lines.  If
you look at the "on paintStroke()" handler you will see a detailed
description of what how it deals with this, and why.

If you are using a pencil tool rather than a brush, you may get good
results by using the draw() command to join the dots directly, rather
than copying the brush shape at each point as the "on paintSegment()"
handler does.

Cheers,

James




[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to