xxxxxxxxxx
38
function setup() {
createCanvas(512, 342)
background(0)
noStroke()
fill(255)
}
let x = 1 << 20
let y = 0
let i = 1 << 25
let j = 0
function draw() {
if (frameCount > 7) return
i += j >> 5
j -= i >> 4
loadPixels()
for (let l = 0; l < 1e6; l += 1) {
x += y >>> 2
y -= x
x += y >>> 2
x += 1 << 6
y -= 1 << 16
let px = x >>> 23
let py = (y >>> 23) / 1.5 | 0
let index = (px + py * width) * 4
pixels[index + 0] += (j >> 23) & 2
pixels[index + 1] += (i >> 23) & 2
pixels[index + 2] += (i >> 23) & 2
}
updatePixels()
}