curve_detail()

Sets the resolution at which curves display.

Examples

example picture for curve_detail()
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
def setup():
    py5.size(100, 100, py5.P3D)
    py5.no_fill()


def draw():
    py5.curve_detail(1)
    draw_curves(-15)
    py5.stroke(126)
    py5.curve_detail(2)
    draw_curves(0)
    py5.stroke(255)
    py5.curve_detail(4)
    draw_curves(15)


def draw_curves(y):
    py5.curve(5, 28+y, 5, 28+y, 73, 26+y, 73, 63+y)
    py5.curve(5, 28+y, 73, 26+y, 73, 63+y, 15, 67+y)
    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