CubeLut

A 3D colour table parsed from a .cube file, which every backend draws through trilinear interpolation.

The table maps SDR codes to SDR codes over a domain of 0f to 1f. Entries are held in .cube order, with red changing fastest and blue slowest. Two tables with the same entries are equal, and hashCode is worked out once, so comparing tables per frame does not walk their entries.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether this table leaves every code where it is, within what its 16 bit atlas can tell apart.

Link copied to clipboard
val size: Int

How many grid points the table has along each axis.

Functions

Link copied to clipboard
fun at(red: Float, green: Float, blue: Float): FloatArray

The colour this table maps a red, green and blue code to, in 0f..1f and read between grid points trilinearly.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String