APIlibrenderinglib/rendering/samplefunctionsFunction: toHex()On this pageFunction: toHex() toHex(r, g, b): string Defined in: src/lib/rendering/sample/index.ts:33 Format a colour as #rrggbb. Parameters r number g number b number Returns string Example toHex(255, 0, 128); // "#ff0080"