ericleong / fisheye.js

A javascript library for applying radial lens distortion to images using WebGL.
https://ericleong.github.io/fisheye.js
MIT License
80 stars 9 forks source link

Uncaught TypeError: Cannot read property 'useProgram' of undefined (fisheye: line 299) #3

Open immjs opened 5 years ago

immjs commented 5 years ago

How do I fix it?

ericleong commented 5 years ago

Do you have more details? What browser are you using and what code is causing the error?

Did you initialize the library like this?

var canvas = document.getElementById('canvas');
var fisheye = new Fisheye(canvas);

fisheye.setDistortion(red, green, blue);