Skip to content
This repository has been archived by the owner on Feb 28, 2021. It is now read-only.

Proposed way of adding examples #101

Merged
merged 1 commit into from
Aug 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions examples/ExampleStyled/basicCanvas.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
function setup() {
// try changing the values here
createCanvas(300,200);
background(0);
}

function draw() {
}
16 changes: 16 additions & 0 deletions examples/ExampleStyled/basicShapes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
function setup() {
createCanvas(300,200);
background(255);
}

function draw() {
// try changing the values of each shape and their fill() values
fill(0);
ellipse(50,50,20,30);
fill(255,0,0);
rect(150,50,100,50);
fill(0,255,0);
triangle(50,150,100,150,100,100);
fill(0,0,255);
quad(200,150,250,150,250,180,200,190);
}
7 changes: 6 additions & 1 deletion examples/ExampleStyled/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@
<section id="tableOutput-content"></section>
<section id="soundOutput-content"></section>
<script src="../../dist/p5.accessibility.js"></script>
<!-- Uncomment the file you want to view -->
<script src="app.js"></script>
<!--
<script src="basicCanvas.js"></script>
<script src="basicShapes.js"></script>
-->
</body>

</html>
</html>