Skip to main content

@microsoft/fast-colors > ColorRGBA64 > toStringWebRGBA

ColorRGBA64.toStringWebRGBA() method

Returns the color formatted as a string; "rgba(0xRR, 0xGG, 0xBB, a)"

Signature:
toStringWebRGBA(): string;
Returns:

string

Remarks

Note that this follows the convention of putting alpha in the range [0.0,1.0] while the other three channels are [0,255]