bezier

bezier-detail

bezier-point

bezier-tangent

curve

curve-detail

curve-point

curve-tangent

curve-tightness

bezier

Arguments
[x1 y1 z1 cx1 cy1 cz1 cx2 cy2 cz2 x2 y2 z2][x1 y1 cx1 cy1 cx2 cy2 x2 y2]
Docstring
Draws a Bezier curve on the screen. These curves are defined by a
series of anchor and control points. The first two parameters
specify the first anchor point and the last two parameters specify
the other anchor point. The middle parameters specify the control
points which define the shape of the curve.
Works only inside sketch functions?
Yes
Original Processing method
bezier()

bezier-detail

Arguments
[detail]
Docstring
Sets the resolution at which Beziers display. The default value is
20. This function is only useful when using the :p3d or :opengl
renderer as the default (:java2d) renderer does not use this
information.
Works only inside sketch functions?
Yes
Original Processing method
bezierDetail()

bezier-point

Arguments
[a b c d t]
Docstring
Evaluates the Bezier at point t for points a, b, c, d. The
parameter t varies between 0 and 1, a and d are points on the curve,
and b and c are the control points. This can be done once with the x
coordinates and a second time with the y coordinates to get the
location of a bezier curve at t.
Works only inside sketch functions?
Yes
Original Processing method
bezierPoint()

bezier-tangent

Arguments
[a b c d t]
Docstring
Calculates the tangent of a point on a Bezier curve.
(See http://en.wikipedia.org/wiki/Tangent)
Works only inside sketch functions?
Yes
Original Processing method
bezierTangent()

curve

Arguments
[x1 y1 z1 x2 y2 z2 x3 y3 z3 x4 y4 z4][x1 y1 x2 y2 x3 y3 x4 y4]
Docstring
Draws a curved line on the screen. The first and second parameters
specify the beginning control point and the last two parameters
specify the ending control point. The middle parameters specify the
start and stop of the curve. Longer curves can be created by putting
a series of curve fns together or using curve-vertex. An additional
fn called curve-tightness provides control for the visual quality of
the curve. The curve fn is an implementation of Catmull-Rom
splines.
Works only inside sketch functions?
Yes
Original Processing method
curve()

curve-detail

Arguments
[detail]
Docstring
Sets the resolution at which curves display. The default value is
20. This function is only useful when using the :p3d or :opengl
renderer as the default (:java2d) renderer does not use this
information.
Works only inside sketch functions?
Yes
Original Processing method
curveDetail()

curve-point

Arguments
[a b c d t]
Docstring
Evalutes the curve at point t for points a, b, c, d. The parameter
t varies between 0 and 1, a and d are points on the curve, and b c
and are the control points. This can be done once with the x
coordinates and a second time with the y coordinates to get the
location of a curve at t.
Works only inside sketch functions?
Yes
Original Processing method
curvePoint()

curve-tangent

Arguments
[a b c d t]
Docstring
Calculates the tangent of a point on a curve.
See: http://en.wikipedia.org/wiki/Tangent
Works only inside sketch functions?
Yes
Original Processing method
curveTangent()

curve-tightness

Arguments
[ti]
Docstring
Modifies the quality of forms created with curve and
curve-vertex. The parameter squishy determines how the curve fits
to the vertex points. The value 0.0 is the default value for
squishy (this value defines the curves to be Catmull-Rom splines)
and the value 1.0 connects all the points with straight
lines. Values within the range -5.0 and 5.0 will deform the curves
but will leave them recognizable and as values increase in
magnitude, they will continue to deform.
Works only inside sketch functions?
Yes
Original Processing method
curveTightness()