We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc5cc85 commit 5fea07eCopy full SHA for 5fea07e
2 files changed
app.js
@@ -0,0 +1,16 @@
1
+function setup() {
2
+ createCanvas(640, 480);
3
+
4
+}
5
+function draw () {
6
+ noStroke();
7
+ fill(0,255,0);
8
+ rect(320, 240, 20, 20);
9
10
+fill(255,0,0);
11
+circle(500, 100, 20)
12
13
+stroke(0,0,255);
14
+strokeWeight(3);
15
+line(0, 40, 640, 40);
16
index.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
+ <title>Intro to JavaScript</title>
+ <style> canvas { border: 1px solid black;}</style>
+</head>
+<body>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/p5.min.js
+"></script> <script src="app.js"></script>
+ </body>
+</html>
0 commit comments