MCPcopy
hub / github.com/omgovich/colord / toRgb

Method toRgb

src/colord.ts:72–74  ·  view source on GitHub ↗

* Converts a color to RGB color space and returns an object. * Always includes an alpha value from 0 to 1.

()

Source from the content-addressed store, hash-verified

70 * Always includes an alpha value from 0 to 1.
71 */
72 public toRgb(): RgbaColor {
73 return roundRgba(this.rgba);
74 }
75
76 /**
77 * Converts a color to RGB color space and returns a string representation.

Callers 6

mixPluginFunction · 0.80
namesPluginFunction · 0.80
parseColorNameFunction · 0.80
minifyPluginFunction · 0.80
a11yPluginFunction · 0.80
colord.test.tsFile · 0.80

Calls 1

roundRgbaFunction · 0.90

Tested by

no test coverage detected