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

Method toHex

src/colord.ts:64–66  ·  view source on GitHub ↗

* Returns the hexadecimal representation of a color. * When the alpha channel value of the color is less than 1, * it outputs #rrggbbaa format instead of #rrggbb.

()

Source from the content-addressed store, hash-verified

62 * it outputs #rrggbbaa format instead of #rrggbb.
63 */
64 public toHex(): string {
65 return rgbaToHex(this.rgba);
66 }
67
68 /**
69 * Converts a color to RGB color space and returns an object.

Callers 6

isEqualMethod · 0.95
namesPluginFunction · 0.80
minifyHexFunction · 0.80
plugins.test.tsFile · 0.80
checkFunction · 0.80
colord.test.tsFile · 0.80

Calls 1

rgbaToHexFunction · 0.90

Tested by 1

checkFunction · 0.64