FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   Can I draw a bezier part way?
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Can I draw a bezier part way?  (Read 319 times)
Ricard


Can I draw a bezier part way?
« on: Jan 14th, 2005, 9:12pm »

Me again.
 
Is it possible to draw a fraction of a bezier?  All I know is that beziers are calculated by a function that has a parameter which goes from 0 to 1, I would like to know if it would be possible to choose, that it only draws from 0 to 0.5, to draw part of the curve.
 
It might not be possible because the renderer might be implemented so it draws it in an optimized way by breaking the curve up, instead of actually calculating the equation and implementing it.
 
Gracias, again and again,
Ricard
 
mKoser

WWW Email
Re: Can I draw a bezier part way?
« Reply #1 on: Jan 15th, 2005, 5:45pm »

try looking at the curvepoint command:
http://processing.org/reference/curvePoint_.html
 
that provides access to the points that make up a curve.
 
+ mikkel
 

mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
Ricard


Re: Can I draw a bezier part way?
« Reply #2 on: Jan 15th, 2005, 6:04pm »

Great reply.
That's exactly what I need.  I guess you must be a BETA tester.
 
But as it is in version 70+ I'll have to wait until the BETA version comes out.
 
I would really like to join the beta testers, mainly because I'm very interested on the engine, the growth of the language and some very specific functions like these, that are not yet implemented on the ALPHA release.
 
But I understand they already have enough people and more could just make it hard to manage.  Anyway, if there's anything I could do, let me know.  I would really like to help.
 
Ricard
 
fry


WWW
Re: Can I draw a bezier part way?
« Reply #3 on: Jan 15th, 2005, 6:16pm »

actually, you need bezierPoint() (curvePoint will give you part of a catmull-rom, not bezier, curve). and it's in the current alpha releases, it's not a 70+ feature.
 
mKoser

WWW Email
Re: Can I draw a bezier part way?
« Reply #4 on: Jan 15th, 2005, 6:44pm »

ahh... bezier ... of course! doh!
 

mikkel crone koser | www.beyondthree.com | http://processing.beyondthree.com
Ricard


Re: Can I draw a bezier part way?
« Reply #5 on: Jan 15th, 2005, 7:25pm »

Oh good,
 
bezierPoint() and curvePoint() are part of the current releases.  It's great.
 
I thought it was for 70+ because I couldn't find them in the reference index and the message on the doc page:
 
Quote:
Reference for version 70+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

 
it was a bit confusing.  Anyway it's all good, now.
 
ricard
« Last Edit: Jan 15th, 2005, 7:27pm by Ricard »  
Pages: 1 

« Previous topic | Next topic »