MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / wrapPhase

Function wrapPhase

src/cli/prompts/gradient.tsx:52–55  ·  view source on GitHub ↗
(p: number)

Source from the content-addressed store, hash-verified

50
51/** Wrap a phase value into [0,1) so callers can advance it without bounds-checking. */
52export function wrapPhase(p: number): number {
53 const m = p % 1;
54 return m < 0 ? m + 1 : m;
55}
56
57/** Aurora palette — teal → cyan → blue → indigo → violet → pink. Tasteful and vivid. */
58export const AURORA: RGB[] = [

Callers 2

gradient.test.tsFile · 0.85
GradientTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected