Last active
May 18, 2019 12:52
-
-
Save Gnimuc/ba43cd3f794843b0b1591cec70cabff9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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