Overview
Explore the intersection of Swift programming and laser cutting technology in this 18-minute conference talk from try! Swift Tokyo 2019. Discover how iOS software engineer Jon-Tait Beason leverages CoreGraphics and other iOS APIs to create vector graphics for the Glowforge 3D Laser Printer. Learn about building robust, elegant, and safe solutions in Swift for manipulating graphics, working with SVGs, implementing flood filling algorithms, and handling image transformations. Gain insights into the development of features that allow users to create and customize designs for laser cutting various materials like wood, leather, and acrylic.
Syllabus
Intro
The Glowforge
Picture
Vector Graphics
Swift Coaster
Working with SVG
Fundamentals
Owl Trace
Trace: Adding Cut Outs
Algorithm: Flood Filling
Flood Filling: Recursive
Pixels and Neighbors
Drawing: Bezierpath
Coasters SVG
SVG: Coaster
Drag Group: Layer & Image
Drag Group: Moving
The Image
Image Model
Drag Group View
Layer: Drawing and Positioning
Way off
Drag Group Image
BitmapimageView: Transform
Transformations: 15
How do we fix?
Moving Pivot: Center
Safety
Swift as Light
Taught by
try! Swift Conference