Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Still Going during the Pandemic

Still Going during the Pandemic

Anthony Starks

October 28, 2020
Tweet

More Decks by Anthony Starks

Other Decks in Programming

Transcript

  1. Motivation The desire for a high-level Go API for developers

    and designers to think in terms of high level objects that make up a visual display. The objects will be familiar to anyone using a modern illustration program (text, images, lines, arcs, circles, curves, etc). The API should facilitate the artful arrangement of these elements on a scalable 2D canvas. Use Cases: Information Displays, Data Visualization, Creative Coding, Presentations https://gist.github.com/ajstarks/5bad9b1f5a859b86a17a03bbfbafcee6
  2. The Percent Grid 0 10 20 30 40 50 60

    70 80 90 100 0 10 20 30 40 50 60 70 80 90 100 x y
  3. Using the Percent Grid 0 10 20 30 40 50

    60 70 80 90 100 0 10 20 30 40 50 60 70 80 90 100 x y (50, 50) (90, 70) (10, 10) (30, 70) Rect(90, 70, ...) Circle(50, 50, ...) Line(10, 10, 30, 70, ...)
  4. proposal: add illustrations to documentation pages #39513 // Circle makes

    a filled circle, using percentage-based measures center at (x, y), radius r // Image: [circle centered at (x,y) indicated with a red dot, filled with gray](circle.png) func (* Canvas) Circle(x, y, r float32, fillcolor color.RGBA) https://github.com/golang/go/issues/39513