Skip to content

Instantly share code, notes, and snippets.

@andrusenn
Created July 20, 2019 19:10
Show Gist options
  • Save andrusenn/9e9bff6b2f9a01c039c6499a76a80a00 to your computer and use it in GitHub Desktop.
Save andrusenn/9e9bff6b2f9a01c039c6499a76a80a00 to your computer and use it in GitHub Desktop.
Visuals: Minimal 2 Rects
/*
Leparc > 0.2.0
Andres Senn
*/
colorMode(HSB, 255)
function draw() {
// bg(0)
zoom(0.01)
if (gate(200, 50)) displace(-100, 0)
fade(10)
rectMode(CENTER)
noFill()
stroke(255)
beginRot()
rect(width / 2, height / 2, sinOsc(0.2) * 200, sinOsc(0.2) * 600)
endRot()
stroke(abs(sinOsc(0.1)) * 255, 255, 255)
rect(width / 2, height / 2 + cosOsc(0.1) * 200, 600, sinOsc(0.1) * 50)
mirrorY()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment