SVG Notes: Polyline

Just a guy who loves to write code and watch anime.
Search for a command to run...

Just a guy who loves to write code and watch anime.
No comments yet. Be the first to comment.
Qualities that make outstanding builders.

Bipedal vs quadrupedal: how many legs This is about the number of legs the creature walks on. Bipedal. Two legs. Humans, ostriches, T-rex, kangaroos, most fantasy humanoids. Quadrupedal. Four legs. Do

Intro You hear "lerp" and "smoothstep" everywhere in game dev. They sound like math jargon. They're not. Both are small tools that do the same job: smoothly move from one value to another. The problem

What is Kinematics Kinematics is the math field. It's the study of how things move without worrying about forces (which would be dynamics). FK and IK are the two branches: forward kinematics and inver

Intro Textures are usually the biggest cost in a 3D scene. Memory, bandwidth, and load time all get eaten by them. Resizing them is the obvious lever. There's more. This post is about the less obvious

<polyline points="10,10 50,50 90,10 70,80" />
points attribute = list of x,y coordinates separated by spaces or commas:
10,10 = first point
50,50 = second point
90,10 = third point
70,80 = fourth point
Lines connect each point to the next in order, but it doesn't connect the last point back to the first.
<!-- Comma-separated -->
<polyline points="10,10 50,50 90,10" />
<!-- Space-separated -->
<polyline points="10 10 50 50 90 10" />
<!-- Mixed (both work) -->
<polyline points="10,10 50,50 90 10" />
<polyline points="10,10 50,50 90,10"
stroke="red"
stroke-width="3"
fill="none" />
Important: Usually set fill="none" because polylines create weird filled shapes if you don't. The stroke is what you typically want to see.