MCPcopy Create free account
hub / github.com/Oslonline/dithering-studio / imageDataToArray

Function imageDataToArray

src/test/algorithmTestUtils.ts:202–204  ·  view source on GitHub ↗
(imageData: ImageData)

Source from the content-addressed store, hash-verified

200 * Converts ImageData to a comparable array for snapshots
201 */
202export function imageDataToArray(imageData: ImageData): number[] {
203 return Array.from(imageData.data);
204}
205
206/**
207 * Test that algorithm handles edge cases

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected