Swift Documentation badge

SwiftGraphics is a library for creative coding and generative art tailored towards rending SVGs meant for pen plotting.

Please see the example repo for a working reference.

Ray Tracing Example

2D Primiatives

  • Circle
  • Rectangle
    • BoundingBox
  • Line
  • Bézier path

Ray Tracing

  • Directional emiiter
  • Radial emiiter
  • Linear emiiter
  • Fresnel lenses


  • 2D Vectors


  • SVG output
  • PNG output