Transform(ColorMode)

Method

Namespace: ANSITerm

Declared in: ANSITerm.ColorValue


Transforms the color value into target color mode. If the target mode supports less colors, it's quantized to nearest color supported based on it's RGB distance. If the target mode supports more colors, it's converted as is.

Syntax

public void Transform(
	ColorMode targetMode
)

Back to index