Topic: point to point (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=28337" title="Pages that link to Topic: point to point (Page 1 of 1)" rel="nofollow" >Topic: point to point <span class="small">(Page 1 of 1)</span>\

 
EDDII
Bipolar (III) Inmate

From:
Insane since: May 2004

posted posted 08-17-2006 13:06

hey
i was wondering if there is a way in mx flash to draw point to point but then for it to smoothen it like it does with the pencil
thanks

Dracusis
Maniac (V) Inmate

From: Brisbane, Australia
Insane since: Apr 2001

posted posted 10-16-2006 13:03

No, not unless you write an algorithm to smooth it yourself. You can draw curves with the drawing APIs curveTo() method, but for anything more than 3 points you'll run into issues.

If you want to average several points to create a smoother line, then using a basic quadratic bezier algorithm would be the simplest and fastest way to have at it. There's a dead simple paper about how it's done here: http://www.math.washington.edu/~king/coursedir/m445w01/lab/lab04/lab04.html

There's also some info here about how to implement cubic bezier curves in flash, but that's probably overkill for what you want.

(Edited by Dracusis on 10-16-2006 13:04)

(Edited by Dracusis on 10-16-2006 13:05)



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu