4 ms·
In https://github.com/bijection/g9/blob/master/src/Data2Renderables.js https://github.com/bijection/g9/blob/master/src/Data2Rendera... each shape gets a unique
by bijection 10y ago
In https://github.com/bijection/g9/blob/master/src/Data2Renderables.js https://github.com/bijection/g9/blob/master/src/Data2Rendera... each shape gets a unique id.
Dragging a shape calls the 'desire' function in https://github.com/bijection/g9/blob/master/src/index.js https://github.com/bijection/g9/blob/master/src/index.js , which runs gradient descent with something like the shape's distance from the mouse as the cost.