Swift Package Index


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


  • The latest stable release is 0.2.0. Released 5 months ago.
  • The last commit to main was 4 days ago.

Swift Version Compatibility

  • 0.2.0 and main
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 0.2.0 and main
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

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
  • Bézier path

Ray Tracing

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

Vectors

  • 2D Vectors

Rendering

  • SVG output
  • PNG output