Processors

Static Class in Zigurous.ColorPro.Utils


Declaration

public static class Processors

Description

Functions for processing component values.

Extension Methods

From100Converts a component value in the range [0..100] to a float in the range [0..1].
From255Converts a component value in the range [0..255] to a float in the range [0..1].
From360Converts a component value in the range [0..360] to a float in the range [0..1].
To100Converts a component value in the range [0..1] to an integer in the range [0..100].
To255Converts a component value in the range [0..1] to an integer in the range [0..255].
To360Converts a component value in the range [0..1] to an integer in the range [0..360].
WrapWraps the input to the range [min..max]. If the value exceeds the max it wraps around to the min, and if the value is less than the min it wraps back to max.
Wrap01Wraps the input to the range [0..1]. If the value exceeds 1 it wraps around to 0, and if the value is less than 0 it wraps back to 1.