Skip to content

Commit 729840b

Browse files
committed
scaling fix
1 parent 4504db9 commit 729840b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/fourier2_plot/sketch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function draw()
151151
{
152152
var xlog = sqrt(map(i, 0, fft.magnitude.length-1, 0., 1.));
153153
var xs = map(xlog, 0, 1, width*0.1, width*0.9);
154-
var ys = map(sqrt(fft.magnitude[i]), 0, 1, height*0.9, height*0.2);
154+
var ys = map(sqrt(fft.magnitude[i]), 0, sqrt(0.5), height*0.9, height*0.2);
155155
vertex(xs, ys);
156156
noFill();
157157
rad = 5;

0 commit comments

Comments
 (0)