More writing. Hopefully can finish the first draft soon

This commit is contained in:
2024-12-13 23:28:35 -05:00
parent b526b02e7b
commit 9b1a3895d0
6 changed files with 71 additions and 34 deletions

View File

@ -1,7 +1,7 @@
export function paintLogarithmic(width: number, height: number, histogram: number[]): ImageData {
const image = new ImageData(width, height);
const histogramLog = new Array<number>();
const histogramLog: number[] = [];
histogram.forEach(value => histogramLog.push(Math.log(value)));
let histogramLogMax = -Infinity;