Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ad
using Luxor, Colors
function main(fname)
weare = ["data scientists", "programmers", "physicists", "statisticians", "ecologists", "web developers", "mathematicians", "economists", "astrophysicists", "machine learning researchers", "HPC developers", "quants", "electrical engineers", "software developers", "bio-informaticists", "economic forecasters", "data engineers", "theoretical biologists", "psychologists", "educators", "insurers", "condensed matter theorists", "research software engineers", "space scientists", "energy forecasters", "geospatial analysts", "botanists", "chemists", "cryptographers", "cyber-security researchers", "algorithmists", "biologists", "natural language experts", "professors", "environmental economists", "flight dynamics engineers", "geophysicists", "materials scientists", "mechanical engineers", "computational mathematicians", "mathematical biologists", "computer vision experts", "quantum particle researchers", "machine learning developers", "whale conservationists", "signal processing researchers", "students", "graphic designers", "engineers", "invisible people", "cats", "dogs", "Python refugees"]
Drawing(600, 500, fname)
origin()
background("white")
setantialias(6) # pity it doesnt work on text :(
# left side, "we are..."
@layer begin
fontsize(16)
fontface("BellCentennialStd-NameNum")
sethue("rebeccapurple")
rect(BoundingBox()[1], 300, 500, :fill)
rect(BoundingBox()[1], 300, 500, :clip)
setmode("add")
sethue("white")
textwrap("We are: " * join(vcat(weare, weare), ", "),
300, # width
BoundingBox()[1] + (10, 10),
leading=21,
(lnumber, str, pt, h) -> begin
setopacity(rescale(pt.y, -150, 200, 1, 0.075))
end,
rightgutter=10)
clipreset()
end
# "come and join us"
@layer begin
translate(O + (-240, 230))
newpath()
fontsize(22)
fontface("Verlag-Black")
sethue("white")
text("come and join us!")
end
# right side
# overwrought graphics as per usual...
@layer begin
rightbox = BoundingBox(boxtopcenter(BoundingBox()), boxbottomright(BoundingBox()))
# this is crazy lino
box(rightbox, :clip)
translate(boxtopright(rightbox) + (50, -50))
rotate/3)
r=1:150
d=18
sethue("grey90")
t=Table(d*noise.(r/d,r/d), d*noise.(r/d,r/d))
for (pos,n) in t
setopacity(isodd(t.currentrow+t.currentcol) ?
0.7 : 0.25)
box(t, n, :fill)
end
clipreset()
end
# julia logo
@layer begin
translate(Point(boxmiddlecenter(rightbox).x, -100))
# allow for j descender
gsave()
scale(0.7, 0.7)
translate(-175, -114) # 163 to 180, 96 to 114
julialogo() # locate center at 0/0
grestore()
end
# slogans
@layer begin
fontface("Verlag-Black")
sethue("black")
fontsize(22)
text("the",
Point(boxmiddlecenter(rightbox).x - 40, -125), halign=:center)
fontsize(16)
text("programming language",
Point(boxmiddlecenter(rightbox).x + 16, -38), halign=:center)
fontsize(20)
# fontface("Verlag-BlackItalic")
text("modern, dynamic, fast",
Point(boxmiddlecenter(rightbox).x, 140), halign=:center)
text("easy to use, open source",
Point(boxmiddlecenter(rightbox).x, 160), halign=:center)
end
# github
@layer begin
# file GitHub-Mark-32px.png downloaded from
# https://github.com/logos
# githublogo = readpng("GitHub-Mark-Light-32px.png")
githublogo = readpng("GitHub-Mark-32px.png")
placeimage(githublogo, Point(boxmiddlecenter(rightbox).x - 135, 208))
sethue("black")
fontface("Verlag-Black")
fontsize(20)
text("Contribute on Github", Point(boxmiddlecenter(rightbox).x, 230), halign=:center)
end
# border
sethue("black")
# that pesky 2 pixel black border
setline(4)
box(O, 600, 500, :stroke)
finish()
preview()
end
main("stackad-2019.svg")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.