BinaryColorFunction Class
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.
DarkenFunction ux
DesaturateFunction ux
LightenFunction ux
SaturateFunction ux
ScaleLightnessFunction ux
ScaleSaturationFunction ux
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
Interface of BinaryColorFunction
Inherited from BinaryOperator
Compute(object, object) : object uno
IsLeftOptional : bool uno
IsRightOptional : bool uno
Left : Expression uno
Right : Expression uno
TryCompute(object, object, object) : bool uno
Inherited from ComputeExpression
GetArgument(int) : Expression uno
Name : string uno
TryCompute(Argument[], object) : bool uno
Inherited from Expression
SourceFileName : string ux
hide
SourceLineNumber : int ux
hide
Subscribe(IContext, IListener) : IDisposable uno
See IExpression.Subscribe
for docs.
Inherited from object
Equals(object) : bool uno
GetHashCode : int uno
GetType : Type uno
ToString : string uno
Implemented Interfaces
IExpression uno
ISourceLocation uno
hide