Shapes

Polygons drawn from math with css-doodle’s @shape() function. Edit the commands, or start from one in the collection.

heptagon
points: 7;

Commands

points
how many, 3–3600
r
radius from angle t
turn
laps around the circle
x, y
coordinates from t
t
reshapes the angle
rotate
rotation in degrees
frame
outline thickness
scale
factor, or x y
fill
nonzero or evenodd
move
offset x y

In equations

t
the angle, 0 to 2π
i
the point index, from 1
seq(a, b, …)
cycles values
range(a, b)
runs from a to b
sin, pow, π
any Math function
k: 5;
declares a variable