/SwiftGraphics

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

Primary LanguageSwiftMIT LicenseMIT

SwiftGraphics

Swift Documentation badge

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

Take a look at the documentation and visit the example repo for a working reference.

Ray Tracing Example

2D Primatives

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

Ray Tracing

  • Directional emitter
  • Radial emitter
  • Linear emitter
  • Fresnel lenses
  • Refraction

Vectors

  • 2D Vectors

Rendering

  • SVG output
  • PNG output