MCPcopy Create free account
hub / github.com/TodePond/ScreenPond / hexify

Function hexify

libraries/habitat-embed.js:207–211  ·  view source on GitHub ↗
(number)

Source from the content-addressed store, hash-verified

205 };
206
207 const hexify = (number) => {
208 const string = number.toString(16);
209 if (string.length === 2) return string;
210 return "0" + string;
211 };
212
213 const getSplash = (red, green, blue) => {
214 const closestRed = getClosest(red, reds).toString();

Callers 1

habitat-embed.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected