Sarah Ciston
commited on
Commit
·
5b404b3
1
Parent(s):
ac3be74
add canvas
Browse files
index.js
CHANGED
@@ -77,3 +77,15 @@ function renderBox({ box, label }) {
|
|
77 |
boxElement.appendChild(labelElement);
|
78 |
imageContainer.appendChild(boxElement);
|
79 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
boxElement.appendChild(labelElement);
|
78 |
imageContainer.appendChild(boxElement);
|
79 |
}
|
80 |
+
|
81 |
+
function setup(){
|
82 |
+
createCanvas(200,200)
|
83 |
+
background(200)
|
84 |
+
textSize(20)
|
85 |
+
textAlign(CENTER,CENTER)
|
86 |
+
console.log('p5 loaded')
|
87 |
+
}
|
88 |
+
|
89 |
+
function draw(){
|
90 |
+
//
|
91 |
+
}
|
style.css
CHANGED
@@ -51,6 +51,10 @@ svg {
|
|
51 |
pointer-events: none;
|
52 |
}
|
53 |
|
|
|
|
|
|
|
|
|
54 |
#example {
|
55 |
font-size: 14px;
|
56 |
text-decoration: underline;
|
|
|
51 |
pointer-events: none;
|
52 |
}
|
53 |
|
54 |
+
canvas {
|
55 |
+
display: block;
|
56 |
+
}
|
57 |
+
|
58 |
#example {
|
59 |
font-size: 14px;
|
60 |
text-decoration: underline;
|