Functions for modifying color values.

Colors in Fuse are represented as RGBA values. A float3 converts to a float4 by having a 1 implicitly added as the alpha value. Hex strings can also convert to color values.

Most of the operations are calculated in HSL color space, first by converting the RGB value to HSL, performing the operation, and converting back to RGB. The alpha value is not modified by RGB <=> HSL conversions.

Clamping is, in general, not done on the inputs, intermediaries, or outputs. This means you may end up with RGB values outside of the 0..1 range. This ensures that color information is not prematurely lost when performing multiplate operations.

To work directly with HSL values you can use the hslaToRgba and rgbaToHsla functions.

Location

Namespace
Fuse.Reactive
Package
Fuse.Reactive.Expressions 2.9.1
Show Uno properties and methods

Interface of BinaryColorFunction

Inherited from BinaryOperator

Inherited from ComputeExpression

Inherited from Expression

Inherited from object

Implemented Interfaces