OfxSplineTool
An interface for controlling a 2D cubic hermite spline.
Install / Use
/learn @kylemcdonald/OfxSplineToolREADME
ofxSplineTool is an addon for openFrameworks
ofxSplineTool provides an interface for controlling a cubic spline. It's a hard fork of ofxCurvesTool, which emulates the "Curves" dialog in Photoshop.
Enable/Disable
The interface only listens to mouse and keyboard events when it is drawn. It's a little magical, but if you're interested in the details see the implementation for ofxSplineTool::drawEvent().
Loading/Saving
ofxSplineTool stores data in an anonymous list of lists, using a severely simplified YAML representation. Call ofxSplineTool::save() or ofxSplineTool::load() with a .yml extension.
Drawing
If you happen to scale or rotate ofxSplineTool, it may get confused about where your mouse is clicking, but it's ok to translate it however you like.
Related Skills
node-connect
338.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.6kCommit, push, and open a PR
