Skip to content

Instantly share code, notes, and snippets.

@mvanveen
Last active April 26, 2016 23:12
Show Gist options
  • Save mvanveen/c24589ecb4fac56188483215125e7f76 to your computer and use it in GitHub Desktop.
Save mvanveen/c24589ecb4fac56188483215125e7f76 to your computer and use it in GitHub Desktop.
<style>
body{
background: #62A8BC;
font-weight:1.1em;
color:white;
font-weight:200;
}
a { color:white; text-decoration: underline;}
</style>
<h1>04 26 2016 Art</h1>
<script>
function waves() {
noFill();
stroke(random(220,255), random(200,255), random(200,255));
for (j = 0; j < 400; j += random(5,15)) {
for (i =0; i < 400; i += random(3, 5)) {
arc(50 + i*2, 55 + j, 70 * (random(1,10)/random(20,30)), 70* (random(1,10)/random(20,30)), PI, 0);
//arc(100 + i*2, 85 + j, 70* (random(1,10)/random(20,30)), 70* (random(1,10)/random(20,30)), 0, PI);
}}
}
function setup() {
resizeCanvas(windowWidth, windowHeight);
}
function draw() {
clear();
waves();
}
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.24/p5.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment