Color render working

This commit is contained in:
2024-12-02 22:36:25 -05:00
parent 2bee6142be
commit ce1873147c
8 changed files with 138 additions and 14 deletions

View File

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