3 ms·
Impressive. Interesting how it gets some things so close, but pretty wrong if (c.length === 8) { return new Color3( parseInt(c.substr(0
by qiller 4y ago
Impressive. Interesting how it gets some things so close, but pretty wrong
if (c.length === 8) {
return new Color3(
parseInt(c.substr(0, 2), 16) / 255,
parseInt(c.substr(2, 2), 16) / 255,
parseInt(c.substr(4, 2), 16) / 255,
);
}
If "c" has a length of 8, it treats the first two characters as the alpha value and ignores them.