Header menu logo Nu

Color Module

Functions and values

Function or value Description

color r g b a

Full Usage: color r g b a

Parameters:
    r : single
    g : single
    b : single
    a : single

Returns: Color
Modifiers: inline
r : single
g : single
b : single
a : single
Returns: Color

color8 r g b a

Full Usage: color8 r g b a

Parameters:
    r : byte
    g : byte
    b : byte
    a : byte

Returns: Color
Modifiers: inline
r : byte
g : byte
b : byte
a : byte
Returns: Color

color8Dup a

Full Usage: color8Dup a

Parameters:
    a : byte

Returns: Color
Modifiers: inline
a : byte
Returns: Color

colorDup a

Full Usage: colorDup a

Parameters:
    a : single

Returns: Color
Modifiers: inline
a : single
Returns: Color

colorEq x y

Full Usage: colorEq x y

Parameters:
Returns: bool
Modifiers: inline
x : Color
y : Color
Returns: bool

colorNeq x y

Full Usage: colorNeq x y

Parameters:
Returns: bool
Modifiers: inline
x : Color
y : Color
Returns: bool

colorOne

Full Usage: colorOne

Returns: Color
Returns: Color

colorPacked u

Full Usage: colorPacked u

Parameters:
    u : uint

Returns: Color
Modifiers: inline
u : uint
Returns: Color

colorZero

Full Usage: colorZero

Returns: Color
Returns: Color

Type extensions

Type extension Description

this.MapA

Full Usage: this.MapA

Parameters:
    mapper : float32 -> float32

Returns: Color

Extended Type: Color

mapper : float32 -> float32
Returns: Color

this.MapA8

Full Usage: this.MapA8

Parameters:
    mapper : byte -> byte

Returns: Color

Extended Type: Color

mapper : byte -> byte
Returns: Color

this.MapB

Full Usage: this.MapB

Parameters:
    mapper : float32 -> float32

Returns: Color

Extended Type: Color

mapper : float32 -> float32
Returns: Color

this.MapB8

Full Usage: this.MapB8

Parameters:
    mapper : byte -> byte

Returns: Color

Extended Type: Color

mapper : byte -> byte
Returns: Color

this.MapG

Full Usage: this.MapG

Parameters:
    mapper : float32 -> float32

Returns: Color

Extended Type: Color

mapper : float32 -> float32
Returns: Color

this.MapG8

Full Usage: this.MapG8

Parameters:
    mapper : byte -> byte

Returns: Color

Extended Type: Color

mapper : byte -> byte
Returns: Color

this.MapR

Full Usage: this.MapR

Parameters:
    mapper : float32 -> float32

Returns: Color

Extended Type: Color

mapper : float32 -> float32
Returns: Color

this.MapR8

Full Usage: this.MapR8

Parameters:
    mapper : byte -> byte

Returns: Color

Extended Type: Color

mapper : byte -> byte
Returns: Color

Color.Modulo(a, b)

Full Usage: Color.Modulo(a, b)

Parameters:
Returns: Color

Extended Type: Color

a : Color
b : Color
Returns: Color

Color.Pow(a, b)

Full Usage: Color.Pow(a, b)

Parameters:
Returns: Color

Extended Type: Color

a : Color
b : Color
Returns: Color

this.ScaleA

Full Usage: this.ScaleA

Parameters:
    scalar : float32

Returns: Color

Extended Type: Color

scalar : float32
Returns: Color

this.ScaleA8

Full Usage: this.ScaleA8

Parameters:
    scalar : single

Returns: Color

Extended Type: Color

scalar : single
Returns: Color

this.ScaleB

Full Usage: this.ScaleB

Parameters:
    scalar : float32

Returns: Color

Extended Type: Color

scalar : float32
Returns: Color

this.ScaleB8

Full Usage: this.ScaleB8

Parameters:
    scalar : single

Returns: Color

Extended Type: Color

scalar : single
Returns: Color

this.ScaleG

Full Usage: this.ScaleG

Parameters:
    scalar : float32

Returns: Color

Extended Type: Color

scalar : float32
Returns: Color

this.ScaleG8

Full Usage: this.ScaleG8

Parameters:
    scalar : single

Returns: Color

Extended Type: Color

scalar : single
Returns: Color

this.ScaleR

Full Usage: this.ScaleR

Parameters:
    scalar : float32

Returns: Color

Extended Type: Color

scalar : float32
Returns: Color

this.ScaleR8

Full Usage: this.ScaleR8

Parameters:
    scalar : single

Returns: Color

Extended Type: Color

scalar : single
Returns: Color

this.WithA

Full Usage: this.WithA

Parameters:
    a : float32

Returns: Color

Extended Type: Color

a : float32
Returns: Color

this.WithA8

Full Usage: this.WithA8

Parameters:
    a : byte

Returns: Color

Extended Type: Color

a : byte
Returns: Color

this.WithB

Full Usage: this.WithB

Parameters:
    b : float32

Returns: Color

Extended Type: Color

b : float32
Returns: Color

this.WithB8

Full Usage: this.WithB8

Parameters:
    b : byte

Returns: Color

Extended Type: Color

b : byte
Returns: Color

this.WithG

Full Usage: this.WithG

Parameters:
    g : float32

Returns: Color

Extended Type: Color

g : float32
Returns: Color

this.WithG8

Full Usage: this.WithG8

Parameters:
    g : byte

Returns: Color

Extended Type: Color

g : byte
Returns: Color

this.WithR

Full Usage: this.WithR

Parameters:
    r : float32

Returns: Color

Extended Type: Color

r : float32
Returns: Color

this.WithR8

Full Usage: this.WithR8

Parameters:
    r : byte

Returns: Color

Extended Type: Color

r : byte
Returns: Color

Type something to start searching.