curve_detail()#

Sets the resolution at which curves display.

Examples#

example picture for curve_detail()
 1def setup():
 2    py5.size(100, 100, py5.P3D)
 3    py5.no_fill()
 4
 5
 6def draw():
 7    py5.curve_detail(1)
 8    draw_curves(-15)
 9    py5.stroke(126)
10    py5.curve_detail(2)
11    draw_curves(0)
12    py5.stroke(255)
13    py5.curve_detail(4)
14    draw_curves(15)
15
16
17def draw_curves(y):
18    py5.curve(5, 28+y, 5, 28+y, 73, 26+y, 73, 63+y)
19    py5.curve(5, 28+y, 73, 26+y, 73, 63+y, 15, 67+y)
20    py5.curve(73, 26+y, 73, 63+y, 15, 67+y, 15, 67+y)

Description#

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

Underlying Processing method: curveDetail

Syntax#

curve_detail(detail: int, /) -> None

Parameters#

  • detail: int - resolution of the curves

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