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

Method withG

shared/java/Color.java:53–56  ·  view source on GitHub ↗
(int color, int g)

Source from the content-addressed store, hash-verified

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;
55 return ((g & 0xFF) << 8) | (color & 0xFFFF00FF);
56 }
57
58 public static int withB(int color, int b) {
59 assert 0 <= b && b <= 255 : "Blue is out of 0..255 range: " + b;

Callers 1

executeMethod · 0.95

Calls

no outgoing calls

Tested by 1

executeMethod · 0.76