Builder

class Builder

Builder for creating ColorGrading instances.

Configure color grading settings such as exposure, contrast, saturation, and tone mapping, then call build() to create the ColorGrading object.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun build(engine: Engine): ColorGrading

Creates the ColorGrading object.

Link copied to clipboard

Sets the channel mixer to adjust individual color channels.

Link copied to clipboard

Sets the contrast adjustment.

Link copied to clipboard
fun curves(shadowGamma: FloatArray, midPoint: FloatArray, highlightScale: FloatArray): ColorGrading.Builder

Sets curve adjustments for shadows, midtones, and highlights.

Link copied to clipboard

Specifies a custom 3D color grading LUT to map the final sRGB color, applied after post-processing in LDR (sRGB space).

Link copied to clipboard

Sets the dimensions of the color grading LUT (3D cube side length).

Link copied to clipboard

Adjusts the exposure of the image in exposure value (EV) stops.

Link copied to clipboard

Enables or disables fast math approximations.

Link copied to clipboard

Sets the format of the color grading LUT.

Link copied to clipboard

Enables or disables gamut mapping.

Link copied to clipboard

Enables or disables luminance scaling.

Link copied to clipboard

Controls the amount of night adaptation to replicate low-light vision.

Link copied to clipboard

Sets the color space the graded color is converted to (default: Rec709-sRGB-D65). Only Rec709-sRGB-D65 and Rec709-Linear-D65 are supported, and only the transfer function is taken into account.

Link copied to clipboard

Sets the quality level of the color grading LUT.

Link copied to clipboard

Sets the saturation adjustment.

Link copied to clipboard

Sets shadows, midtones, and highlights adjustments.

Link copied to clipboard

Sets slope, offset, and power adjustments (ASC CDL).

Link copied to clipboard

Sets the tone mapper to use for tone mapping.

Link copied to clipboard

Sets the vibrance adjustment (selective saturation).

Link copied to clipboard
fun whiteBalance(temperature: Float, tint: Float): ColorGrading.Builder

Adjusts the white balance of the image to remove color casts or for artistic purposes.