bezier_detail()#

Sets the resolution at which Beziers display.

Examples#

 1# move the mouse left and right to see the detail change
 2
 3def setup():
 4    py5.size(100, 100, py5.P3D)
 5    py5.no_fill()
 6
 7
 8def draw():
 9    py5.background(204)
10    d = int(py5.remap(py5.mouse_x, 0, 100, 1, 20))
11    py5.bezier_detail(d)
12    py5.bezier(85, 20, 10, 10, 90, 90, 15, 80)

Description#

Sets the resolution at which Beziers display. The default value is 20. This function is only useful when using the P3D renderer; the default P2D renderer does not use this information.

Underlying Processing method: bezierDetail

Syntax#

bezier_detail(detail: int, /) -> None

Parameters#

  • detail: int - resolution of the curves

Updated on November 12, 2021 11:30:58am UTC