Skip to content

Instantly share code, notes, and snippets.

@eomine
Created July 21, 2015 20:31
Show Gist options
  • Save eomine/d32388f9249fc132c359 to your computer and use it in GitHub Desktop.
Save eomine/d32388f9249fc132c359 to your computer and use it in GitHub Desktop.
logo gerstner
w, h = 868, 864
strokeW = 50
spacing = 5
# barra esquerda
rect(0, 0, strokeW, h)
# barra direita
rect(w-strokeW, 0, strokeW, h)
# barras do meio
halfW = w / 2
thirdH = h / 3
rect(halfW-spacing/2-strokeW, 0, strokeW, thirdH)
rect(halfW+spacing/2, 0, strokeW, thirdH)
rect(halfW-spacing/2-strokeW, h-thirdH, strokeW, thirdH)
rect(halfW+spacing/2, h-thirdH, strokeW, thirdH)
# barras horizontais
barWidth = halfW - spacing/2 - spacing * 2 - strokeW * 2
rect(strokeW+spacing, 0, barWidth, strokeW)
rect(halfW+spacing/2+strokeW+spacing, 0, barWidth, strokeW)
rect(strokeW+spacing, h-strokeW, barWidth, strokeW)
rect(halfW+spacing/2+strokeW+spacing, h-strokeW, barWidth, strokeW)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment