Package heronarts.lx.output
Class LXOutput.GammaTable
java.lang.Object
heronarts.lx.output.LXOutput.GammaTable
- Enclosing class:
LXOutput
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal LXOutput.GammaTable.Curve[]
Curve lookup tables for each of 255 precomputed brightness stages, each curve contains in->out mappings for red, green, blue, and white pixelsstatic final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate
(double gamma, double whitePointRed, double whitePointGreen, double whitePointBlue, double whitePointWhite) Generate the gamma curve tables for RGBW tables
-
Field Details
-
NUM_STEPS
public static final int NUM_STEPS- See Also:
-
WHITE_POINT_MAX
public static final int WHITE_POINT_MAX- See Also:
-
level
Curve lookup tables for each of 255 precomputed brightness stages, each curve contains in->out mappings for red, green, blue, and white pixels
-
-
Constructor Details
-
GammaTable
public GammaTable()
-
-
Method Details
-
generate
public LXOutput.GammaTable generate(double gamma, double whitePointRed, double whitePointGreen, double whitePointBlue, double whitePointWhite) Generate the gamma curve tables for RGBW tables- Parameters:
gamma
- Gamma levelwhitePointRed
- White point for red (0-255)whitePointGreen
- White point for green (0-255)whitePointBlue
- White point for blue (0-255)whitePointWhite
- White point for white (0-255)- Returns:
- this
-