gpt
Discussion List
-
hexToRGB()
Had GPT whip up a hexToRGB function since Onshape doesn't seem to have one. It needed some direction on which functions Onshape has like splitIntoCharacters() but over all it did great: export function hexToRGB(hex) { // Remove the '#' symbol if present // var hex = hexColor.replace("#", ""); // Split the hex color string…