Skip to content

Instantly share code, notes, and snippets.

@cormullion
cormullion / stackad.jl
Last active January 7, 2018 11:31
Make StackOverflow ad for Julia
#!/usr/bin/env julia
using Luxor, Colors
Drawing(600, 500, "/tmp/stackad.png")
origin()
background("white")
# background textifying, not for reading, fortunately
function background_text(str_array, fontsz, beginning::Point, ending::Point)
@cormullion
cormullion / more-diff-eq.jl
Last active September 4, 2016 21:40
another diff eq logo
#!/usr/bin/env julia
using Luxor, Colors
function julia_balls()
# get centers for the three balls
points = reverse(ngon(0, 0, 100, 3, pi/6, vertices=true))
gsave()
# setcolor(0.251, 0.388, 0.847) # the darker blue not used
# setcolor(0.4, 0.51, 0.878) # the lighter blue not used
#!/usr/bin/env julia
using Luxor, Colors
function julia_balls()
# get centers for the three balls
points = reverse(ngon(0, 0, 100, 3, pi/6, vertices=true))
gsave()
# setcolor(0.251, 0.388, 0.847) # the darker blue not used
# setcolor(0.4, 0.51, 0.878) # the lighter blue not used