Skip to content

Instantly share code, notes, and snippets.

@dustinlacewell
Created April 8, 2017 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dustinlacewell/f96b00a8434be69826a1b98240fd3120 to your computer and use it in GitHub Desktop.
Save dustinlacewell/f96b00a8434be69826a1b98240fd3120 to your computer and use it in GitHub Desktop.
method draw(self: VSplit[Color], display: var RendererPtr) =
let
mp = self.midpointW(self.ratio)
top = self.region.top
bottom = self.region.bottom
display.setDrawColor(255, 255, 255, 255)
for y in top..bottom:
display.drawPoint(mp, y)
self.backward.draw(display)
self.forward.draw(display)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment