Open sritchie opened 1 year ago
Port of https://github.com/samzhang111/curve-shortening/blob/master/curveshortening.js
https://sam.zhang.fyi/2020/10/29/curve-shortening/
(ns zhang) [:div {:style "display: flex; width: 1020px; margin: 2em 0; justify-content:space-between; border: 3px solid black; border-radius: 30px"} [:div {:style "flex: 0 1 auto; width: 500px; height: 500px; border-right: 3px solid black; user-select: none; overflow: hidden; position: relative; touch-action: none;"}] [:div {:style "flex: 0 1 auto; width: 500px; height: 500px; border: none; position: relative; cursor: move;"}]]
Port of https://github.com/samzhang111/curve-shortening/blob/master/curveshortening.js
https://sam.zhang.fyi/2020/10/29/curve-shortening/