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

Method toColor

shared/java/Color4f.java:29–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 }
28
29 public int toColor() {
30 return ((Math.round(_a * 255f)) << 24)
31 | ((Math.round(_r * 255f)) << 16)
32 | ((Math.round(_g * 255f)) << 8)
33 | (Math.round(_b * 255f));
34 }
35
36 public float[] flatten() {
37 return new float[] {_r, _g, _b, _a};

Callers 1

executeMethod · 0.95

Calls

no outgoing calls

Tested by 1

executeMethod · 0.76