use v2 api

This commit is contained in:
Coenraad Stijne 2019-12-15 12:47:48 +01:00
parent b5e4b72775
commit 38bd0a616e

View File

@ -443,7 +443,7 @@ image.onload = () => {
kernel(image);
// Result: colorful image
document.getElementsByTagName('body')[0].appendChild(kernel.getCanvas());
document.getElementsByTagName('body')[0].appendChild(kernel.canvas);
};
```
@ -474,7 +474,7 @@ function onload() {
kernel([image1, image2, image3]);
// Result: colorful image composed of many images
document.getElementsByTagName('body')[0].appendChild(kernel.getCanvas());
document.getElementsByTagName('body')[0].appendChild(kernel.canvas);
}
};
```