Skip to content

Commit

Permalink
update logo to modernized Julia (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
cormullion authored Mar 13, 2020
1 parent a447509 commit 7cfe475
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docs/src/assets/figures/generate-logo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,20 @@ function main()
Drawing(500, 500, "/tmp/colorslogo.png")
# transparent background
origin()
juliadarkercolors = [Luxor.darker_green, Luxor.darker_purple, Luxor.darker_red]
julialightercolors = [Luxor.lighter_green, Luxor.lighter_purple, Luxor.lighter_red]
juliacolors = [Luxor.julia_green, Luxor.julia_purple, Luxor.julia_red]
pts = ngon(O + (0, 30), 110, 3, -pi/2, vertices=true)
# I don't think I can draw it with compositing modes
diskradius = 140
# basic circles
for (n, p) in enumerate(pts)
sethue(juliadarkercolors[n])
sethue(juliacolors[n])
circle(pts[mod1(n-1, 3)], diskradius, :fill)
sethue(julialightercolors[n])
circle(pts[mod1(n-1, 3)], diskradius-15, :fill)
end
@layer begin
for (n, p) in enumerate(pts)
circle(p, diskradius, :clip)
sethue(["cyan", "magenta", "yellow"][mod1(n, 3)])
circle(pts[mod1(n+1, 3)], diskradius, :fill)
circle(pts[mod1(n + 1, 3)], diskradius, :fill)
clipreset()
end
end
Expand Down
Binary file modified docs/src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7cfe475

Please sign in to comment.