Drawing

Three conceptual models of drawing

Drawing Style

Consider DrawLine(...)

  • Many options:
    • what colour?
    • how thick?
    • dashed or solid?
    • etc.
  • Observations:
    • most choices are the same for multiple calls to DrawLine()
    • lots of different parameters, but may only want to set one or two

Let us introduce SimpleKit, a UI toolkit.