new SquarePixGenerator(options)
SquarePixGenerator Generates pixel data with simple mono value squares.
Parameters:
Name | Type | Description |
---|---|---|
options | object | The generator options. |
Methods
(inner) getRGB(i, j, k) → {Array.<number>}
Get RGB values.
Parameters:
Name | Type | Description |
---|---|---|
i | number | The column index. |
j | number | The row index. |
k | number | The slice index. |
Returns:
The [R,G,B] values.
- Type:
- Array.<number>
(inner) getValue(i, j, k) → {Array.<number>}
Get a simple value.
Parameters:
Name | Type | Description |
---|---|---|
i | number | The column index. |
j | number | The row index. |
k | number | The slice index. |
Returns:
The grey value.
- Type:
- Array.<number>