mentat-collective / emmy-viewers

High-performance symbolic, 2D and 3D visual extensions to the Emmy computer algebra system.
https://emmy-viewers.mentat.org
MIT License
39 stars 7 forks source link

Add example notebook for curve-shortening demo #8

Open sritchie opened 1 year ago

sritchie commented 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;"}]]