mirror of
https://github.com/bspeice/speice.io
synced 2025-07-04 23:35:00 -04:00
More writing for the main posts
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
export function paintLogarithmic(width: number, histogram: Uint32Array): ImageData {
|
||||
const image = new ImageData(width, histogram.length / width);
|
||||
export function paintLogarithmic(width: number, height: number, histogram: number[]): ImageData {
|
||||
const image = new ImageData(width, height);
|
||||
|
||||
const histogramLog = new Array<number>();
|
||||
histogram.forEach(value => histogramLog.push(Math.log(value)));
|
||||
|
Reference in New Issue
Block a user