fix: implement simple distortion fix
This commit is contained in:
@ -28,7 +28,9 @@ self.addEventListener('message', function (e) {
|
||||
const y = Math.floor(i / width);
|
||||
|
||||
// KarlKilian Formel
|
||||
const pixelValue = Math.cos(360 / (Math.pow(height, 2)) * Math.pow(y, 2) + (-360 / height) * y + 90);
|
||||
//const pixelValue = Math.cos(360 / (Math.pow(height, 2)) * Math.pow(y, 2) + (-360 / height) * y + 90);
|
||||
|
||||
const pixelValue = (2 * Math.sqrt(y * (height - y))) / height;
|
||||
|
||||
oldStore[id] = oldStore[id] + 1 || 1;
|
||||
|
||||
|
Reference in New Issue
Block a user