MCPcopy Index your code
hub / github.com/benfry/processing4 / styles

Method styles

core/src/processing/opengl/PShapeOpenGL.java:5203–5239  ·  view source on GitHub ↗
(PGraphics g)

Source from the content-addressed store, hash-verified

5201
5202
5203 @Override
5204 protected void styles(PGraphics g) {
5205 if (g instanceof PGraphicsOpenGL) {
5206 if (g.stroke) {
5207 setStroke(true);
5208 setStroke(g.strokeColor);
5209 setStrokeWeight(g.strokeWeight);
5210 setStrokeCap(g.strokeCap);
5211 setStrokeJoin(g.strokeJoin);
5212 } else {
5213 setStroke(false);
5214 }
5215
5216 if (g.fill) {
5217 setFill(true);
5218 setFill(g.fillColor);
5219 } else {
5220 setFill(false);
5221 }
5222
5223 if (g.tint) {
5224 setTint(true);
5225 setTint(g.tintColor);
5226 }
5227
5228 setAmbient(g.ambientColor);
5229 setSpecular(g.specularColor);
5230 setEmissive(g.emissiveColor);
5231 setShininess(g.shininess);
5232
5233 if (image != null) {
5234 setTextureMode(g.textureMode);
5235 }
5236 } else {
5237 super.styles(g);
5238 }
5239 }
5240
5241
5242 ///////////////////////////////////////////////////////////

Callers 1

preMethod · 0.95

Calls 11

setStrokeMethod · 0.95
setStrokeWeightMethod · 0.95
setStrokeCapMethod · 0.95
setStrokeJoinMethod · 0.95
setFillMethod · 0.95
setTintMethod · 0.95
setAmbientMethod · 0.95
setSpecularMethod · 0.95
setEmissiveMethod · 0.95
setShininessMethod · 0.95
setTextureModeMethod · 0.95

Tested by

no test coverage detected