Serie Luna sketch adaptado de genekogan recursiones de espirales con random gausianos Los proyectos estan realizados con p5js @patxangas
Last active
August 1, 2016 21:25
-
-
Save karlosgliberal/4ac410bcbb9d9f25d6579eb91bfc2948 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function($, undefined) { | |
| console.log("hola"); | |
| })(jQuery); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>moon</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.js" type="text/javascript"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/p5.js" type="text/javascript"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/addons/p5.dom.js" type="text/javascript"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.2/addons/p5.sound.js" type="text/javascript"></script> | |
| <script src="app.js" type="text/javascript"></script> | |
| <script src="sketch.js" type="text/javascript"></script> | |
| <link rel="stylesheet" href="style.css" media="screen" title="no title" charset="utf-8"> | |
| <style> body {padding: 0; margin: 0;} canvas {vertical-align: center; horizontal-aling: center;} </style> | |
| </head> | |
| <body> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function setup() { | |
| var c = createCanvas(1200, 1200); | |
| smooth(); | |
| background(0); | |
| ellipseMode(CENTER); | |
| } | |
| function draw() { | |
| stroke(255,20); | |
| noFill(); | |
| push(); | |
| translate(width/2,height/2); | |
| rotate(map(cos(0.4*frameCount), -1, 0.5, 0, TWO_PI)); | |
| arc(random(0),randomGaussian(0), 720, randomGaussian(720,200), 0, random(PI+QUARTER_PI), OPEN); | |
| pop(); | |
| if(frameCount > 2000){ | |
| noLoop(); | |
| save("movida.jpg"); | |
| } | |
| } | |
| function mousePressed() { | |
| save("movida.jpg"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| canvas { | |
| padding: 0; | |
| margin: auto; | |
| display: block; | |
| width: 800px; | |
| height: 600px; | |
| position: absolute; | |
| top: 0; | |
| bottom: 0; | |
| left: 0; | |
| right: 0; | |
| } | |
| body { | |
| background-color: #000000; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment