/** * ( begin auto-generated from PShape_disableStyle.xml ) * * Disables the shape's style data and uses Processing's current styles. * Styles include attributes such as colors, stroke weight, and stroke * joints. * * ( end auto-generated ) * <h3>Advanced</h3> * Overrides this shape's style information and uses PGraphics styles and * colors. Identical to ignoreStyles(true). Also disables styles for all * child shapes. * @webref pshape:method * @usage web_application * @brief Disables the shape's style data and uses Processing styles * @see PShape#enableStyle() */ public void disableStyle() { style = false; for (int i = 0; i < childCount; i++) { children[i].disableStyle(); } }
/** * ( begin auto-generated from PShape_disableStyle.xml ) * * Disables the shape's style data and uses Processing's current styles. * Styles include attributes such as colors, stroke weight, and stroke * joints. * * ( end auto-generated ) * <h3>Advanced</h3> * Overrides this shape's style information and uses PGraphics styles and * colors. Identical to ignoreStyles(true). Also disables styles for all * child shapes. * @webref pshape:method * @usage web_application * @brief Disables the shape's style data and uses Processing styles * @see PShape#enableStyle() */ public void disableStyle() { style = false; for (int i = 0; i < childCount; i++) { children[i].disableStyle(); } }
@Override public void disableStyle() { if (openShape) { PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "disableStyle()"); return; } // Saving the current values to use if the style is re-enabled later savedStroke = stroke; savedStrokeColor = strokeColor; savedStrokeWeight = strokeWeight; savedStrokeCap = strokeCap; savedStrokeJoin = strokeJoin; savedFill = fill; savedFillColor = fillColor; savedTint = tint; savedTintColor = tintColor; savedAmbientColor = ambientColor; savedSpecularColor = specularColor; savedEmissiveColor = emissiveColor; savedShininess = shininess; savedTextureMode = textureMode; super.disableStyle(); }
@Override public void disableStyle() { if (openShape) { PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "disableStyle()"); return; } // Saving the current values to use if the style is re-enabled later savedStroke = stroke; savedStrokeColor = strokeColor; savedStrokeWeight = strokeWeight; savedStrokeCap = strokeCap; savedStrokeJoin = strokeJoin; savedFill = fill; savedFillColor = fillColor; savedTint = tint; savedTintColor = tintColor; savedAmbientColor = ambientColor; savedSpecularColor = specularColor; savedEmissiveColor = emissiveColor; savedShininess = shininess; savedTextureMode = textureMode; super.disableStyle(); }
void drawSVG(PShape s) { pushMatrix(); scale(10.0f); translate(-100, 100, 140); s.disableStyle(); noFill(); stroke(0); shape(s); popMatrix(); }
ohio.disableStyle(); fill(isOver ? color(0,192,0) : color(255,127,0)); shape(ohio);