bezier_detail()

Sets the resolution at which Beziers display.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# move the mouse left and right to see the detail change

def setup():
    py5.size(100, 100, py5.P3D)
    py5.no_fill()


def draw():
    py5.background(204)
    d = int(py5.remap(py5.mouse_x, 0, 100, 1, 20))
    py5.bezier_detail(d)
    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 Java method: bezierDetail

Syntax

bezier_detail(detail: int, /) -> None

Parameters

  • detail: int - resolution of the curves

Updated on September 11, 2021 16:51:34pm UTC