Skip to content

Instantly share code, notes, and snippets.

View AsimBhadra's full-sized avatar
🙌
Grateful

AsimBhadra

🙌
Grateful
View GitHub Profile
@AsimBhadra
AsimBhadra / script.js
Created February 23, 2022 10:11
Smoke
new p5();
var canvas = document.createElement("canvas"),
c = canvas.getContext("2d"),
canvas2 = document.createElement("canvas2"),
c2 = canvas.getContext("2d"),
w = (canvas.width = canvas2.width = window.innerWidth),
h = (canvas.height = canvas2.height = window.innerHeight);
document.body.appendChild(canvas);
@AsimBhadra
AsimBhadra / script.js
Created February 23, 2022 10:14
Smoke
new p5();
var canvas = document.createElement("canvas"),
c = canvas.getContext("2d"),
canvas2 = document.createElement("canvas2"),
c2 = canvas.getContext("2d"),
w = (canvas.width = canvas2.width = window.innerWidth),
h = (canvas.height = canvas2.height = window.innerHeight);
document.body.appendChild(canvas);