MCPcopy Index your code
hub / github.com/processing/processing / styles

Method styles

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

Source from the content-addressed store, hash-verified

4616
4617
4618 @Override
4619 protected void styles(PGraphics g) {
4620 if (g instanceof PGraphicsOpenGL) {
4621 if (g.stroke) {
4622 setStroke(true);
4623 setStroke(g.strokeColor);
4624 setStrokeWeight(g.strokeWeight);
4625 setStrokeCap(g.strokeCap);
4626 setStrokeJoin(g.strokeJoin);
4627 } else {
4628 setStroke(false);
4629 }
4630
4631 if (g.fill) {
4632 setFill(true);
4633 setFill(g.fillColor);
4634 } else {
4635 setFill(false);
4636 }
4637
4638 if (g.tint) {
4639 setTint(true);
4640 setTint(g.tintColor);
4641 }
4642
4643 setAmbient(g.ambientColor);
4644 setSpecular(g.specularColor);
4645 setEmissive(g.emissiveColor);
4646 setShininess(g.shininess);
4647
4648 if (image != null) {
4649 setTextureMode(g.textureMode);
4650 }
4651 } else {
4652 super.styles(g);
4653 }
4654 }
4655
4656
4657 ///////////////////////////////////////////////////////////

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