SColor

Index

Functions Index

Function

string ToHex ()

SColor Lerp (SColor b, float t)

bool Equals (SColor other)

override string ToString ()

static SColor New (float r, float g, float b, float a)

static SColor FromHex (string hex)

Properties Index

Property

float R get

float G get

float B get

float A get

SColor Black get

SColor White get

SColor Red get

SColor Blue get

SColor Green get

SColor Yellow get

Functions

ToHex

string ToHex ()

Return the Hex value of the color.

Lerp

SColor Lerp (SColor b, float t)

Linearly interpolates between current color and b by t.

Parameter
Type
Description

Equals

bool Equals (SColor other)

Returns true if colors are same.

Parameter
Type
Description

ToString

string ToString ()

Returns the RGBA value of the current color.

New

static SColor New (float r, float g, float b, float a)

Create a color by red, green, blue and alpha parameters.

Parameter
Type
Description

FromHex

static SColor FromHex (string hex)

Create a color by Hex value.

Parameter
Type
Description

Properties

R

float R get

Property Description

G

float G get

Property Description

B

float B get

Property Description

A

float A get

Property Description

Black

SColor Black get

Solid black. RGBA is (0, 0, 0, 1).

White

SColor White get

Solid White. RGBA is (1, 1, 1, 1).

Red

SColor Red get

Solid Red. RGBA is (1, 0, 0, 1).

Blue

SColor Blue get

Solid Blue. RGBA is (0, 0, 1, 1).

Green

SColor Green get

Solid Green. RGBA is (0, 1, 0, 1).

Yellow

SColor Yellow get

Yellow. RGBA is (1, 0.92, 0.016, 1).

Last updated

Was this helpful?