MCPcopy Create free account
hub / github.com/HumbleUI/Skija / luminocity

Method luminocity

examples/scenes/src/BitmapImageScene.java:110–113  ·  view source on GitHub ↗
(ColorType colorType, int color)

Source from the content-addressed store, hash-verified

108 }
109
110 public static float luminocity(ColorType colorType, int color) {
111 return Color.getR(color) + Color.getG(color) + Color.getB(color);
112 // return colorType.getR(color) + colorType.getG(color) + colorType.getB(color);
113 }
114
115 public void pixelSorting(Canvas canvas, ByteBuffer pixels, ImageInfo info) {
116 var threshold = 100 + phase() * 100;

Callers 1

pixelSortingMethod · 0.95

Calls 3

getRMethod · 0.95
getGMethod · 0.95
getBMethod · 0.95

Tested by

no test coverage detected