Py5Shape.disable_style()

Py5Shape.disable_style()#

Disables the shape’s style data and uses py5’s current styles.

Examples#

example picture for disable_style()

def setup():
    global s
    # the file "bot.svg" must be in the data folder
    # of the current sketch to load successfully
    s = py5.load_shape("bot.svg")


def draw():
    s.disable_style()
    py5.shape(s, -30, 10, 80, 80)
    s.enable_style()
    py5.shape(s, 50, 10, 80, 80)

Description#

Disables the shape’s style data and uses py5’s current styles. Styles include attributes such as colors, stroke weight, and stroke joints.

Underlying Processing method: PShape.disableStyle

Signatures#

disable_style() -> None

Updated on March 06, 2023 02:49:26am UTC