new GradSquarePixGenerator(options)
GradSquarePixGenerator Generates pixel data as a small gradient square.
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>