View detection

This commit is contained in:
2024-12-08 16:17:21 -05:00
parent 3c583705f8
commit 78d71cbc7b
7 changed files with 40 additions and 16 deletions

View File

@ -9,7 +9,7 @@ export type ChaosGameHistogramProps = ChaosGameFinalProps & {
}
export function* chaosGameHistogram({width, height, transforms, final, quality, step, paint}: ChaosGameHistogramProps) {
let iterations = (quality ?? 1) * width * height;
step = step ?? 100_000;
step = step ?? 10_000;
const histogram = new Uint32Array(width * height);