Skip to content

Commit 0b8995a

Browse files
author
James Halliday
committed
more notes
1 parent b9a8b47 commit 0b8995a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

svg.markdown

+8-6
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ Set the "transform" attribute to any of these:
8282
# translate
8383

8484
``` 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>
8688
```
8789

8890
shifts the y down 30 units and the x right 20 units
@@ -166,6 +168,11 @@ create an open shape from line segments
166168

167169
---
168170

171+
paths, polylines, and polygons are great for interactive
172+
graphs and visualizations
173+
174+
---
175+
169176
You can also dynamically construct elements with javascript!
170177

171178
---
@@ -445,8 +452,3 @@ console.log(collide(a, b));
445452

446453
Now that we've seen basic physics and collision detection,
447454
we can build a simple game!
448-
449-
``` js
450-
```
451-
452-

0 commit comments

Comments
 (0)