Py5Shape.enable_style()
Contents
Py5Shape.enable_style()¶
Enables the shape’s style data and ignores py5’s current styles.
Examples¶

1 2 3 4 5 6 7 8 9 10 11 12 | 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¶
Enables the shape’s style data and ignores py5’s current styles. Styles include attributes such as colors, stroke weight, and stroke joints.
Underlying Processing method: PShape.enableStyle