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

Method withR

shared/java/Color.java:48–51  ·  view source on GitHub ↗
(int color, int r)

Source from the content-addressed store, hash-verified

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;
50 return ((r & 0xFF) << 16) | (color & 0xFF00FFFF);
51 }
52
53 public static int withG(int color, int g) {
54 assert 0 <= g && g <= 255 : "Green is out of 0..255 range: " + g;

Callers 1

executeMethod · 0.95

Calls

no outgoing calls

Tested by 1

executeMethod · 0.76