Skip to content

Instantly share code, notes, and snippets.

@Gnimuc
Last active May 18, 2019 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gnimuc/ba43cd3f794843b0b1591cec70cabff9 to your computer and use it in GitHub Desktop.
Save Gnimuc/ba43cd3f794843b0b1591cec70cabff9 to your computer and use it in GitHub Desktop.
using Luxor
using IterTools
N = 8
scale = 0.6N
Drawing(400, 400, "julia-cameras-logos.png")
origin()
juliacircles()
dots = ngon(O, 100, 3, pi/6, vertices=true)
for dot in dots
poly_verts = ngon(dot, 26, N, vertices=true)
setcolor(0, 0, 0, 0)
setmode("clear")
poly(poly_verts, :fill, close=true)
poly(poly_verts, :stroke, close=true)
push!(poly_verts, first(poly_verts))
for (p, q) in partition(poly_verts, 2, 1)
setline(6)
setlinecap("round")
line(p, p + scale*(q - p), :stroke)
end
end
finish()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment