Alok Menghrajani
Previously: security engineer at Square, co-author of HackLang, put the 's' in https at Facebook. Maker of CTFs.
This blog does not use any tracking cookies and does not serve any ads. Enjoy your anonymity; I have no idea who you are, where you came from, and where you are headed to. Let's dream of an Internet from times past.
Home | Contact me | Github | RSS feed | Consulting services | Tools & games
I experimented with a novel way to combine code and bezier curves. The goal was to make 3d modeling easier, but there's probably a wide range of applications.
I started by thinking of a bezier curve as a function which takes a t
parameter and returns a pair of coordinates (f(t) -> (x, y)
). I then
experiemented with combining bezier curves and code (I picked javascript, an
arbitrary choice). For example, a curve could be used to specify a color, or
rotation or scale transformation.
My vision for the whole code & curve manipulation is to feel like Bret Taylor's user interface (from "Inventing on Principle"). In order to get there, I implemented my own bezier curve editor, a CSG (constructive solid geometry) library and started working on a code editor.
I ran into some numerical stability issues, but some of my early results (I combined a chess piece profile with Square's logo) looked promising:
pawn | king | rook | bishop | queenuse your mouse to rotate the piece