MCPcopy Create free account
hub / github.com/JetBrains/skija / withA

Method withA

shared/java/Color.java:43–46  ·  view source on GitHub ↗
(int color, int a)

Source from the content-addressed store, hash-verified

41 }
42
43 public static int withA(int color, int a) {
44 assert 0 <= a && a <= 255 : "Alpha is out of 0..255 range: " + a;
45 return ((a & 0xFF) << 24) | (color & 0x00FFFFFF);
46 }
47
48 public static int withR(int color, int r) {
49 assert 0 <= r && r <= 255 : "Red is out of 0..255 range: " + r;

Callers 4

executeMethod · 0.95
drawBoundsMethod · 0.95
onFilterMethod · 0.95
setAlphafMethod · 0.80

Calls

no outgoing calls

Tested by 1

executeMethod · 0.76