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

Method setOpacity

core/src/processing/core/PShapeSVG.java:1214–1218  ·  view source on GitHub ↗
(String opacityText)

Source from the content-addressed store, hash-verified

1212
1213
1214 void setOpacity(String opacityText) {
1215 opacity = PApplet.parseFloat(opacityText);
1216 strokeColor = ((int) (opacity * 255)) << 24 | strokeColor & 0xFFFFFF;
1217 fillColor = ((int) (opacity * 255)) << 24 | fillColor & 0xFFFFFF;
1218 }
1219
1220
1221 void setStrokeWeight(String lineweight) {

Callers 1

parseColorsMethod · 0.95

Calls 1

parseFloatMethod · 0.95

Tested by

no test coverage detected