This repository has been archived by the owner on Oct 1, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Processing Ellipses * Processing Mondrian
- Loading branch information
1 parent
dd82633
commit d1bf696
Showing
6 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<html> | ||
<head> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.2/p5.js"></script> | ||
<script src="scripts/ellipses.js"></script> | ||
</head> | ||
<body> | ||
</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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<html> | ||
<head> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.2/p5.js"></script> | ||
<script src="scripts/mondrian.js"></script> | ||
</head> | ||
<body> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
function setup() { | ||
createCanvas(displayWidth, displayHeight); | ||
} | ||
|
||
function draw() { | ||
fill(Math.floor((Math.random() * 255) + 1)); | ||
ellipse(mouseX, mouseY, 80, 80); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
function setup() { | ||
createCanvas(720, 716); | ||
background(255); | ||
} | ||
|
||
function draw() { | ||
strokeWeight(19); | ||
|
||
fill(255, 0, 0); | ||
rect(80, 80, 340, 360); //red rectangle 1 | ||
fill(255, 0, 0); | ||
rect(670, 530, 340, 360); //red rectangle 2 | ||
fill(255, 255, 0); | ||
rect(420, -10, 250, 270); //yellow rectangle 1 | ||
fill(255, 255, 0); | ||
rect(-10, 530, 90, 270); //yellow rectangle 2 | ||
fill(0, 0, 0); | ||
rect(80, 440, 180, 180); //black rectangle 1 | ||
fill(0, 0, 0); | ||
rect(270, 620, 140, 40); //black rectangle 2 | ||
fill(0, 0, 255); | ||
rect(420, 540, 240, 130); //blue rectangle 1 | ||
|
||
line(20, 80, 670, 80); //horizontal 1 | ||
line(20, 260, 80, 260); //horizontal 2 | ||
line(440, 260, 670, 260); //horizontal 2 | ||
line(80, 440, 670, 440); //horizontal 3 | ||
line(20, 530, 720, 530); //horizontal 4 | ||
line(80, 620, 420, 620); //horizontal 5 | ||
line(270, 670, 670, 670); //horizontal 6 | ||
|
||
line(80, 80, 80, 690); //vertical 1 | ||
line(170, 20, 170, 80); //vertical 2 | ||
line(265, 440, 265, 700); //vertical 3 | ||
line(420, 20, 420, 690); //vertical 4 | ||
line(550, 270, 550, 440); //vertical 5 | ||
line(670, 20, 670, 690); //vertical 6 | ||
|
||
} |
d1bf696
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully aliased the URL https://lingonsaft-hacktober-xudsplmpbw.now.sh to the following alias.