GradSquarePixGenerator

new GradSquarePixGenerator(options)

GradSquarePixGenerator Generates pixel data as a small gradient square.

Parameters:
NameTypeDescription
optionsobject

The generator options.

Methods

(inner) getGrey(i, j) → {Array}

Get a grey value.

Parameters:
NameTypeDescription
inumber

The column index.

jnumber

The row index.

Returns:

The grey value.

Type: 
Array

(inner) getRGB(i, j) → {Array}

Get RGB values.

Parameters:
NameTypeDescription
inumber

The column index.

jnumber

The row index.

Returns:

The [R,G,B] values.

Type: 
Array