Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
transformProperties
Method · 0.95
paintBackground
Method · 0.45
paint
Method · 0.45
paintBackground
Method · 0.45
paint
Method · 0.45
paintSignature
Method · 0.45
paint
Method · 0.45
paint
Method · 0.45
paint
Method · 0.45
drawPolyline
Method · 0.45
drawPolygon
Method · 0.45
drawCircle
Method · 0.45
Calls
no outgoing calls
Tested by
14
transformProperties
Method · 0.76
paint
Method · 0.36
paintGlassPane
Method · 0.36
paint
Method · 0.36
paint
Method · 0.36
paint
Method · 0.36
drawContent
Method · 0.36
drawContent
Method · 0.36
drawContent
Method · 0.36
drawContent
Method · 0.36
drawContent
Method · 0.36
drawContent
Method · 0.36