SkillAgentSearch skills...

OfxSplineTool

An interface for controlling a 2D cubic hermite spline.

Install / Use

/learn @kylemcdonald/OfxSplineTool
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated5y ago
Forks5

Languages

C++

Security Score

55/100

Audited on Dec 18, 2020

No findings