textmode.js / media / TextmodeTexture / cellColor
Method: cellColor()
ts
cellColor(
colorOrGray,
g?,
b?,
a?): this;Set the cell color used when cellColorMode is 'fixed'.
Parameters
| Parameter | Type | Description |
|---|---|---|
colorOrGray | | string | number | TextmodeColor | A grayscale value (0-255), hex string ('#RGB', '#RRGGBB', '#RRGGBBAA'), or TextmodeColor instance |
g? | number | Optional green component, or alpha when using grayscale form. |
b? | number | Optional blue component. |
a? | number | Optional alpha component. |
Returns
this
This instance for chaining.