Thomas Lochmatter
·
LaTeX to SVG
·
Secret Sharing
·
RGB/xy
·
NTC
·
PDF
·
QR
·
Unicode
Pixel Canvas
Write your JavaScript code here:
width = Math.PI * 200; height = Math.PI * 50; frames = createFrames(100); pixel = function(x, y, i, frame) { const f = frame * Math.PI; const l = Math.sin((x + f) / 100) * Math.sin(x / 50) * Math.tan(y / 50) * Math.sin(x / 200) * 200 + 128; const r = l + centerRandom(40); const g = l + centerRandom(40); const b = l + centerRandom(40); const a = 255; return [r, g, b, a]; }; function centerRandom(amplitude) { return Math.random() * amplitude - amplitude / 2; }
Play
Stop