Skip to content

Instantly share code, notes, and snippets.

@YuukiToriyama
Created June 29, 2019 13:43
Show Gist options
  • Save YuukiToriyama/b5c09eca11a58b8a0fec83a45e82433c to your computer and use it in GitHub Desktop.
Save YuukiToriyama/b5c09eca11a58b8a0fec83a45e82433c to your computer and use it in GitHub Desktop.
a flower
seq 1 230 | awk '{r = 8*atan2(1,1)/47 * $1; printf "%f,%f ", sin($1)*$1*cos(r) + 250, sin($1)*$1*sin(r) + 250}' | xargs -I@ convert -size 500x500 xc:yellow -fill red -stroke Black -draw 'path "M @ z"' a_flower.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment