Commit 0b8995a James Halliday
committed
1 parent b9a8b47 commit 0b8995a Copy full SHA for 0b8995a
File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,9 @@ Set the "transform" attribute to any of these:
82
82
# translate
83
83
84
84
``` html
85
- <circle transform =" translate(30,20)" cx =" 100" cy =" 200" r =" 20" >
85
+ <svg viewbox =" 0 0 500 500" width =" 100%" height =" 100%" >
86
+ <circle transform =" translate(30,20)" cx =" 100" cy =" 200" r =" 20" >
87
+ </svg >
86
88
```
87
89
88
90
shifts the y down 30 units and the x right 20 units
@@ -166,6 +168,11 @@ create an open shape from line segments
166
168
167
169
---
168
170
171
+ paths, polylines, and polygons are great for interactive
172
+ graphs and visualizations
173
+
174
+ ---
175
+
169
176
You can also dynamically construct elements with javascript!
170
177
171
178
---
@@ -445,8 +452,3 @@ console.log(collide(a, b));
445
452
446
453
Now that we've seen basic physics and collision detection,
447
454
we can build a simple game!
448
-
449
- ``` js
450
- ```
451
-
452
-
You can’t perform that action at this time.
0 commit comments