IColorFunction

Description

[ShutdownSurvive]
interface Tinman.Terrain.Procedural.IColorFunction

Derived from

INoiseFunctionOps<int64, IColorFunction>

Extended by

ColorFunction abstract

Base interface for classes that compute procedural color noise values.

Public / Methods

Add


[Pure]
public method Add → (1)

function in : IColorFunction

[not-null]
The color function to add.

returns → IColorFunction

The resulting color function.

Returns a color function that sums the color values of the given function and this one.

result := this + function
See also

Colors.Add

Blend


[Pure]
public method Blend → (1)

function in : IColorFunction

[not-null]
The color function.

returns → IColorFunction

The resulting color function.

Returns a color function that blends the color values returned by this color function with the color values returned by the given color function.

See also

Colors.Blend

Mul


[Pure]
public method Mul → (1)

function in : IColorFunction

[not-null]
The color function.

returns → IColorFunction

The resulting color function.

Returns a color function that multiplies the color values returned by this color function with the color values returned by the given color function.

result := this * factor
See also

Colors.Mul2

Sub


[Pure]
public method Sub → (1)

function in : IColorFunction

[not-null]
The color function.

returns → IColorFunction

The resulting color function.

Returns a color function that subtracts the color values returned by the given color function from the color values returned by this color function.

See also

Colors.Sub

Extensions

AddC


[Pure]
public static method AddC → (1)

value in : int64

The color value to add.

returns → IColorFunction

The resulting noise function.

Returns a noise function that adds the given color value to the noise values returned by this function.

result := this + value

MulC


[Pure]
public static method MulC → (1)

value in : int64

The color value to multiply with.

returns → IColorFunction

The resulting noise function.

Returns a noise function that multiplies the noise values returned by this noise function with the given color value.

result := this * value

Op


public static method Op → (2)

op in : ColorOp

The operation to use.

other opt : IColorFunction = null

The other noise function or null if op in is unary.

returns → IColorFunction

The resulting noise function.

Applies the given function operator to this noise function and the given one (for binary operators only).

OpC


public static method OpC → (2)

op in : ColorOp

The operation to use.

value in : int64

The color value to combine with.

returns → IColorFunction

The resulting noise function.

Applies the given function operator to this noise function and the given color value (for binary operators only).

SubC


[Pure]
public static method SubC → (1)

value in : int64

The color value to subtract.

returns → IColorFunction

The resulting noise function.

Returns a noise function that subtracts the given color value from the noise values returned by this noise function.

result := this - value