MCPcopy
hub / github.com/gkurt/tegaki / get

Function get

packages/generator/src/processing/skeletonize/guo-hall.ts:11–14  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

9 const result = new Uint8Array(bitmap);
10
11 const get = (x: number, y: number): number => {
12 if (x < 0 || x >= width || y < 0 || y >= height) return 0;
13 return result[y * width + x]!;
14 };
15
16 let changed = true;
17 while (changed) {

Callers 1

guoHallThinFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected