SwiftGraphics

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

Vectors

  • 2D Vectors

Rendering

  • SVG output
  • PNG output