Documentation ¶
Overview ¶
Package redshift is a minimal pure-go implementation of color temperature shifting using gamma ramps with support for X11.
Inspired by https://github.com/jonls/redshift.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorRamp ¶
func ColorRamp[T ~uint8 | uint16 | ~uint32 | uint64, U ~float32 | ~float64](whiteR, whiteG, whiteB U, size int) (r, g, b []T)
ColorRamp calculates the gamma ramp with the specified parameters. Use a value of 1 for the white values for the default ramp.
func ColorRampX11 ¶
ColorRampX11 applies a color ramp to all CRTCs on the specified connection. The RandR extension must be initialized.
func WhitePoint ¶
WhitePoint gets the white point of the provided color temperature. If the temperature is out of range, the closest temperature is returned, and ok is set to false.
https://github.com/jonls/redshift/blob/490ba2aae9cfee097a88b6e2be98aeb1ce990050/src/colorramp.c
Types ¶
This section is empty.