Reference×
Reference
- [] (array access)
- = (assign)
- catch
- class
- // (comment)
- , (comma)
- {} (curly braces)
- /** */ (doc comment)
- . (dot)
- draw()
- exit()
- extends
- final
- false
- import
- implements
- loop()
- /* */ (multiline comment)
- new
- noLoop()
- null
- () (parentheses)
- popStyle()
- pop()
- pushStyle()
- push()
- private
- public
- redraw()
- return
- ; (semicolon)
- setLocation()
- setResizable()
- setTitle()
- setup()
- static
- super
- thread()
- this
- try
- void
- true
Name
enableStyle()
Class
PShape
Description
Enables the shape's style data and ignores Processing's current styles. Styles include attributes such as colors, stroke weight, and stroke joints.
Examples
PShape s; void setup() { size(400, 400); // The file "bot.svg" must be in the data folder // of the current sketch to load successfully s = loadShape("bot.svg"); } void draw() { s.disableStyle(); shape(s, -120, 40, 320, 320); s.enableStyle(); shape(s, 200, 40, 320, 320); }
Syntax
sh.enableStyle()
Parameters
sh
(PShape)
any variable of type PShape
Return
void
Related

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.