MCPcopy Index your code
hub / github.com/simstudioai/sim / setGradColor

Function setGradColor

apps/sim/app/landing-preview/marks-lab/marks-lab.tsx:728–733  ·  view source on GitHub ↗
(which: 'from' | 'to', v: string)

Source from the content-addressed store, hash-verified

726 })
727
728 const setGradColor = (which: 'from' | 'to', v: string) =>
729 setConfigs((prev) => {
730 const next = structuredClone(prev)
731 next[markId].gradient[which] = v
732 return next
733 })
734
735 const setGradPair = (key: 'cx' | 'cy' | 'r', side: 'rest' | 'hover', v: number) =>
736 setConfigs((prev) => {

Callers 1

MarksLabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected