MCPcopy Create free account
hub / github.com/bernaferrari/FigmaToCode / isWhite

Function isWhite

packages/backend/src/common/color.ts:146–147  ·  view source on GitHub ↗
(color: RGB, opacity: number = 1)

Source from the content-addressed store, hash-verified

144 * Checks if color is white
145 */
146export const isWhite = (color: RGB, opacity: number = 1): boolean =>
147 color.r === 1 && color.g === 1 && color.b === 1 && opacity === 1;
148
149/**
150 * Helper for calculating gradient stops in a consistent way across frameworks

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected