ColorHelper

public abstract class ColorHelper

Static routines of general utility for renderer implementations. Renderers are not required to use these helpers, but they were designed to be usable without the default renderer.

Functions

maxBrightness
Link copied to clipboard
static int maxBrightness(int b0, int b1)
Component-wise max.
multiplyColor
Link copied to clipboard
static int multiplyColor(int color1, int color2)
Component-wise multiply.
multiplyRGB
Link copied to clipboard
static int multiplyRGB(int color, float shade)
Multiplies three lowest components by shade.
swapRedBlueIfNeeded
Link copied to clipboard
static int swapRedBlueIfNeeded(int color)
Swaps red blue order if needed to match GPU expectations for color component order.

Sources

jvm source
Link copied to clipboard