Package-level declarations

Types

Link copied to clipboard
class Brightness(val factor: Float) : EffectSpec

Multiply every color channel of the frame.

Link copied to clipboard
class ColorMatrix(val rr: Float = 1.0f, val rg: Float = 0.0f, val rb: Float = 0.0f, val rBias: Float = 0.0f, val gr: Float = 0.0f, val gg: Float = 1.0f, val gb: Float = 0.0f, val gBias: Float = 0.0f, val br: Float = 0.0f, val bg: Float = 0.0f, val bb: Float = 1.0f, val bBias: Float = 0.0f) : EffectSpec

Recombine the color channels of every pixel through a 3x3 matrix and an offset.

Link copied to clipboard
class Contrast(val factor: Float) : EffectSpec

Stretch or flatten every color channel about mid grey.

Link copied to clipboard
class HueRotate(val degrees: Float) : EffectSpec

Turn every hue around the color wheel by the same angle.

Link copied to clipboard
class Invert(val amount: Float = 1.0f) : EffectSpec

Turn every color into its negative.

Link copied to clipboard
class RgbAdjustment(val red: Float = 1.0f, val green: Float = 1.0f, val blue: Float = 1.0f) : EffectSpec

Multiply each color channel by its own factor.

Link copied to clipboard
class Saturation(val factor: Float) : EffectSpec

Move every pixel towards or away from its own grey.

Link copied to clipboard
class Sepia(val amount: Float = 1.0f) : EffectSpec

Tone the frame towards the warm brown of an old photograph.

Functions

Link copied to clipboard

Multiply every color channel by factor, where 1f leaves the frame unchanged.

Link copied to clipboard

Recombine the color channels through a matrix. See ColorMatrix for how the entries are read.

Link copied to clipboard

Stretch every color channel about mid grey by factor, where 1f leaves the frame unchanged.

Link copied to clipboard

Turn the frame monochrome, keeping each pixel's Rec. 709 luma.

Link copied to clipboard

Turn every hue by degrees, where 0f leaves the frame unchanged.

Link copied to clipboard

Invert every color by amount, where 1f is the full negative.

Link copied to clipboard
fun EffectsBuilder.rgbAdjustment(red: Float = 1.0f, green: Float = 1.0f, blue: Float = 1.0f): EffectsBuilder

Multiply each color channel by its own factor, where 1f leaves a channel unchanged.

Link copied to clipboard

Scale how far every pixel sits from its own grey by factor, where 1f leaves the frame unchanged.

Link copied to clipboard

Tone the frame sepia by amount, where 1f is fully toned.