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

Add


[Pure]
public static method Add → (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

Mul


[Pure]
public static method Mul → (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

2 overloads


public static method Op1 → (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).


public static method Op2 → (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).

Sub


[Pure]
public static method Sub → (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