SquarePixGenerator

new SquarePixGenerator(options)

SquarePixGenerator Generates pixel data with simple mono value squares.

Parameters:
NameTypeDescription
optionsobject

The generator options.

Methods

(inner) getRGB(i, j, k) → {Array.<number>}

Get RGB values.

Parameters:
NameTypeDescription
inumber

The column index.

jnumber

The row index.

knumber

The slice index.

Returns:

The [R,G,B] values.

Type: 
Array.<number>

(inner) getShapeNumber(i, j, k) → {number}

Get the shape number at a given position.

Parameters:
NameTypeDescription
inumber

The column index.

jnumber

The row index.

knumber

The slice index.

Returns:

A shape number.

Type: 
number

(inner) getValue(i, j, k) → {Array.<number>}

Get a simple value.

Parameters:
NameTypeDescription
inumber

The column index.

jnumber

The row index.

knumber

The slice index.

Returns:

The grey value.

Type: 
Array.<number>