~/talk

Using Swift to Visualize Algorithms

Talkat try! Swift Tokyo 2018 Β· 2018-03-01..03-03Β· [swift]
slides:none on file

Builds a live UIBezierPath reimplementation in Swift playgrounds that visualizes the De Casteljau construction for a cubic Bezier and for arbitrary N control points, computes points by linear interpolation (lerp) using T in [0,1], draws intermediate line segments and the final yellow point, overlays the built-in UIBezierPath to verify exactness, animates strokeEnd to show drawing, and demonstrates the tradeoff between T increment (smoothness) and speed plus a subdivision optimization that fixes performance.

AI-written summary Β· about

  1. 0:00Intro
  2. 0:55Bezier Curve
  3. 3:41boilerplate code
  4. 4:23Xcode
  5. 5:08Draw Bezier Parts
  6. 13:47Draw Lines Between
  7. 16:15Zip
  8. 17:25Interp
  9. 18:08Multiple Control Points
  10. 20:03Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark β€” the status bar button does the same
?
this help
esc
close this, then clear every filter β€” or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.