Bezier
ABSTRACT
Generates a Bezier curve mesh based on specified control points.
PARAMETERS
control_points | a list of control points defining the Bezier curve. In particular, you must provide 3n+1 3-vectors for some integer n. The first four vertices form a cubic curve. Then, the window shifts by 3 and vertices at indices 3, 4, 5, and 6, form the next set and so on. If the final point is equal to the initial point, the loop is closed. Otherwise, it is bounded by invisible dots. |
tag | a vector of numbers used as the mesh's tag |
default | an enum branch specifying to use the default coloring scheme, which is a white stroke with no fill |
stroke | a 4-vector representing the color of the curve's stroke |
stroke | a 4-vector representing the color of the curve's stroke |
fill | a 4-vector representing the color of the curve's fill. Providing this value forces an uprank. |
RETURN
generates a Bezier curve conforming to the specified control points
DECLARATION
func Bezier(control_points, tag, [color] {[default] {}, [stroke] {stroke}, [solid] {stroke, fill}})