mirror of
https://github.com/gpujs/gpu.js.git
synced 2026-02-01 16:57:35 +00:00
use v2 api
This commit is contained in:
parent
b5e4b72775
commit
38bd0a616e
@ -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);
|
||||
}
|
||||
};
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user