Skip to content

Commit 290b3e3

Browse files
committed
This is a sample assignment for AP Computer Science
1 parent 0702d4a commit 290b3e3

File tree

3 files changed

+10233
-0
lines changed

3 files changed

+10233
-0
lines changed

SampleAssignment.pde

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
void setup()
2+
{
3+
size(300,300);
4+
background(0);
5+
}
6+
void draw()
7+
{
8+
fill(0,0,0,5);
9+
stroke(0,0,0,5);
10+
rect(0,0,300,300);
11+
noFill();
12+
stroke(255,0,255);
13+
translate(150,150);
14+
rotate(random(2*PI));
15+
ellipse(0,0,250,random(250));
16+
}
17+

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
<!DOCTYPE html>
3+
<html>
4+
<head>
5+
<meta charset="utf-8">
6+
<title>Hello World</title>
7+
8+
<script src="processing.js"></script>
9+
</head>
10+
<body>
11+
<canvas data-processing-sources="SampleAssignment.pde"></canvas>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)