MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / setAlpha

Method setAlpha

CodenameOne/src/com/codename1/gaming/Sprite.java:226–229  ·  view source on GitHub ↗
(int alpha)

Source from the content-addressed store, hash-verified

224 }
225
226 public void setAlpha(int alpha) {
227 int a = alpha < 0 ? 0 : (alpha > 255 ? 255 : alpha);
228 color = (a << 24) | (color & 0xffffff);
229 }
230
231 public double getAnchorX() {
232 return anchorX;

Callers 15

transformPropertiesMethod · 0.95
paintBackgroundMethod · 0.45
paintMethod · 0.45
paintBackgroundMethod · 0.45
paintMethod · 0.45
paintSignatureMethod · 0.45
paintMethod · 0.45
paintMethod · 0.45
paintMethod · 0.45
drawPolylineMethod · 0.45
drawPolygonMethod · 0.45
drawCircleMethod · 0.45

Calls

no outgoing calls

Tested by 14

transformPropertiesMethod · 0.76
paintMethod · 0.36
paintGlassPaneMethod · 0.36
paintMethod · 0.36
paintMethod · 0.36
paintMethod · 0.36
drawContentMethod · 0.36
drawContentMethod · 0.36
drawContentMethod · 0.36
drawContentMethod · 0.36
drawContentMethod · 0.36
drawContentMethod · 0.36