Created
October 5, 2017 17:11
-
-
Save jdguzman230/da89d2da40d8e348a6b60279cd4de99c to your computer and use it in GitHub Desktop.
// source http://jsbin.com/kenire
This file contains 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 name="random();" content="Using random(); with point();"> | |
<script data-require="p5.js@*" data-semver="0.5.7" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.7/p5.min.js"></script> | |
<Title>Using random();</Title> | |
</head> | |
<body> | |
Working on issue # 17 with random() | |
<script id="jsbin-javascript"> | |
var i = 0; | |
function setup() { | |
createCanvas (480, 400); | |
} | |
function draw() { | |
background(200); | |
// fill(random(100, 255)); | |
// ellipse(random(0, width), random(0, height), random(0, 100), random(0, 100)); | |
for(var i = 0; i < 200; i++) | |
strokeWeight(random(0,50)); | |
point (random(0, width), random(0,height)); | |
} | |
</script> | |
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="random();" content="Using random(); with point();"> | |
<script data-require="p5.js@*" data-semver="0.5.7" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.7/p5.min.js"><\/script> | |
<Title>Using random();</Title> | |
</head> | |
<body> | |
Working on issue # 17 with random() | |
</body> | |
</html> | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript"> | |
var i = 0; | |
function setup() { | |
createCanvas (480, 400); | |
} | |
function draw() { | |
background(200); | |
// fill(random(100, 255)); | |
// ellipse(random(0, width), random(0, height), random(0, 100), random(0, 100)); | |
for(var i = 0; i < 200; i++) | |
strokeWeight(random(0,50)); | |
point (random(0, width), random(0,height)); | |
} | |
</script></body> | |
</html> |
This file contains 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
var i = 0; | |
function setup() { | |
createCanvas (480, 400); | |
} | |
function draw() { | |
background(200); | |
// fill(random(100, 255)); | |
// ellipse(random(0, width), random(0, height), random(0, 100), random(0, 100)); | |
for(var i = 0; i < 200; i++) | |
strokeWeight(random(0,50)); | |
point (random(0, width), random(0,height)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment