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

Function isBlack

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

Source from the content-addressed store, hash-verified

138 * Checks if color is black
139 */
140export const isBlack = (color: RGB, opacity: number = 1): boolean =>
141 color.r === 0 && color.g === 0 && color.b === 0 && opacity === 1;
142
143/**
144 * Checks if color is white

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected