IComponentModelEncoded<T>

Interface in Zigurous.ColorPro

Declaration

public interface IComponentModelEncoded<T> : IComponentModelEncoded, IComponentModel<T>, IComponentModel where T : struct

Description

A type that represents the components of a color using signal encoding.

Type Parameters

TThe type of component model.
Inherited

Methods

SetConverts a color to the components using the given encoding and sets them as the new values.
ToColorConverts the components to a color using the given encoding.
CopyReturns a copy of the components.
MixReturns the result of mixing the color with another color using a weight between [0..1]. A weight of 0 results in the first color, and a weight of 1 results in the second color.