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

Method setOpacity

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

Source from the content-addressed store, hash-verified

1219
1220
1221 void setOpacity(String opacityText) {
1222 opacity = PApplet.parseFloat(opacityText);
1223 strokeColor = ((int) (opacity * 255)) << 24 | strokeColor & 0xFFFFFF;
1224 fillColor = ((int) (opacity * 255)) << 24 | fillColor & 0xFFFFFF;
1225 }
1226
1227
1228 void setStrokeWeight(String lineweight) {

Callers 1

parseColorsMethod · 0.95

Calls 1

parseFloatMethod · 0.95

Tested by

no test coverage detected