MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / parseColor

Function parseColor

components/light-pillar.tsx:84–87  ·  view source on GitHub ↗
(hex: string)

Source from the content-addressed store, hash-verified

82
83 // Convert hex colors to RGB
84 const parseColor = (hex: string): THREE.Vector3 => {
85 const color = new THREE.Color(hex);
86 return new THREE.Vector3(color.r, color.g, color.b);
87 };
88
89 // Shader material
90 const vertexShader = `

Callers 1

LightPillarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected