Twilight Princess
Remastered version of the GameCube game
Loading...
Searching...
No Matches
ZeldaTesting.WLinearColor Struct Reference

RGBA Color that uses 32-bit floats to represent each component. More...

Public Member Functions

 WLinearColor (float r, float g, float b, float a)
 Construct new WLinearColor with the given R, G, B, and A components.
 
 WLinearColor (float r, float g, float b)
 Construct a WLinearColor with the given R, G, B, and an implicit A component set to 1f.
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
override string ToString ()
 
string ToHexString ()
 

Static Public Member Functions

static bool operator== (WLinearColor lhs, WLinearColor rhs)
 
static bool operator!= (WLinearColor lhs, WLinearColor rhs)
 
static WLinearColor FromHexString (string hexString)
 

Public Attributes

float R
 Red component of the WLinearColor.
 
float G
 Green component of the WLinearColor.
 
float B
 Blue component of the WLinearColor.
 
float A
 Alpha component of the WLinearColor. Defaults to 1f.
 

Properties

float this[int index] [get, set]
 
static WLinearColor White [get]
 
static WLinearColor Black [get]
 
static WLinearColor Red [get]
 
static WLinearColor Green [get]
 
static WLinearColor Blue [get]
 
static WLinearColor Orange [get]
 
static WLinearColor Coral [get]
 
static WLinearColor Yellow [get]
 
static WLinearColor Purple [get]
 
static WLinearColor Seagreen [get]
 
static WLinearColor Pink [get]
 
static WLinearColor DarkGrey [get]
 
static WLinearColor Grey [get]
 
static WLinearColor Transparent [get]
 

Detailed Description

RGBA Color that uses 32-bit floats to represent each component.

Constructor & Destructor Documentation

◆ WLinearColor() [1/2]

ZeldaTesting.WLinearColor.WLinearColor ( float r,
float g,
float b,
float a )

Construct new WLinearColor with the given R, G, B, and A components.

Parameters
rRed Component.
gGreen Component.
bBlue Component.
aAlpha Component.

◆ WLinearColor() [2/2]

ZeldaTesting.WLinearColor.WLinearColor ( float r,
float g,
float b )

Construct a WLinearColor with the given R, G, B, and an implicit A component set to 1f.

Parameters
rRed Component.
gGreen Component.
bBlue Component.

Member Function Documentation

◆ Equals()

override bool ZeldaTesting.WLinearColor.Equals ( object obj)

◆ FromHexString()

static WLinearColor ZeldaTesting.WLinearColor.FromHexString ( string hexString)
static

◆ GetHashCode()

override int ZeldaTesting.WLinearColor.GetHashCode ( )

◆ operator!=()

static bool ZeldaTesting.WLinearColor.operator!= ( WLinearColor lhs,
WLinearColor rhs )
static

◆ operator==()

static bool ZeldaTesting.WLinearColor.operator== ( WLinearColor lhs,
WLinearColor rhs )
static

◆ ToHexString()

string ZeldaTesting.WLinearColor.ToHexString ( )

◆ ToString()

override string ZeldaTesting.WLinearColor.ToString ( )

Member Data Documentation

◆ A

float ZeldaTesting.WLinearColor.A

Alpha component of the WLinearColor. Defaults to 1f.

◆ B

float ZeldaTesting.WLinearColor.B

Blue component of the WLinearColor.

◆ G

float ZeldaTesting.WLinearColor.G

Green component of the WLinearColor.

◆ R

float ZeldaTesting.WLinearColor.R

Red component of the WLinearColor.

Property Documentation

◆ Black

WLinearColor ZeldaTesting.WLinearColor.Black
staticget

◆ Blue

WLinearColor ZeldaTesting.WLinearColor.Blue
staticget

◆ Coral

WLinearColor ZeldaTesting.WLinearColor.Coral
staticget

◆ DarkGrey

WLinearColor ZeldaTesting.WLinearColor.DarkGrey
staticget

◆ Green

WLinearColor ZeldaTesting.WLinearColor.Green
staticget

◆ Grey

WLinearColor ZeldaTesting.WLinearColor.Grey
staticget

◆ Orange

WLinearColor ZeldaTesting.WLinearColor.Orange
staticget

◆ Pink

WLinearColor ZeldaTesting.WLinearColor.Pink
staticget

◆ Purple

WLinearColor ZeldaTesting.WLinearColor.Purple
staticget

◆ Red

WLinearColor ZeldaTesting.WLinearColor.Red
staticget

◆ Seagreen

WLinearColor ZeldaTesting.WLinearColor.Seagreen
staticget

◆ this[int index]

float ZeldaTesting.WLinearColor.this[int index]
getset

◆ Transparent

WLinearColor ZeldaTesting.WLinearColor.Transparent
staticget

◆ White

WLinearColor ZeldaTesting.WLinearColor.White
staticget

◆ Yellow

WLinearColor ZeldaTesting.WLinearColor.Yellow
staticget

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