💻 TermColor User Manual
Public Member Functions | Properties | List of all members
TermColor.ColorHSV Struct Reference
Inheritance diagram for TermColor.ColorHSV:
Inheritance graph
[legend]
Collaboration diagram for TermColor.ColorHSV:
Collaboration graph
[legend]

Public Member Functions

 ColorHSV (float hue, float saturation, float value)
 
ColorHSV ToHSV ()
 
ColorRGB ToRGB ()
 
void From< TColor > (in TColor color)
 
override string ToString ()
 

Properties

float Hue [get, set]
 
float Saturation [get, set]
 
float Value [get, set]
 

Detailed Description

Color represented as (Hue,Saturation,Value) vector.

Member Function Documentation

◆ From< TColor >()

void TermColor.ColorHSV.From< TColor > ( in TColor  color)
inline

Change this color to approximate color .

Template Parameters
TColorType of the color.
Parameters
colorThe color to approximate.

Implements TermColor.IColor.

Type Constraints
TColor :IColor 

◆ ToHSV()

ColorHSV TermColor.ColorHSV.ToHSV ( )
inline

Convert this color to its HSV equivalent.

Returns

Implements TermColor.IColor.

◆ ToRGB()

ColorRGB TermColor.ColorHSV.ToRGB ( )
inline

Convert this color to its RGB equivalent

Returns

Implements TermColor.IColor.

Property Documentation

◆ Hue

float TermColor.ColorHSV.Hue
getset

Gets/sets the hue of the color. Ranges from 0 to 360.

◆ Saturation

float TermColor.ColorHSV.Saturation
getset

Gets/sets the saturation of the color. Ranges from 0 to 1.

◆ Value

float TermColor.ColorHSV.Value
getset

Gets/sets the value of the color. Ranges from 0 to 1.


The documentation for this struct was generated from the following file: