Skip to content

rectTransform is an OpenFrameworks project that draws an ofRectangle and provides some of the functionalities like the photoshop "free transform"-tool we all know and love.

Notifications You must be signed in to change notification settings

MarcoPPino/rectTransform

Repository files navigation

rectTransform

rectTransform is an OpenFrameworks project that draws an ofRectangle and provides some of the functionalities like the photoshop "free transform"-tool we all know and love.

Creates an ofRectangle as a container for whatever you like and appends smaller ofRectangles as transform handles. All handles scale the rect in the direction of their position. Top & Bottom scales the height, Left & Right scales the width. The corner handles scale in all directions. Press shift while pulling the bottom right to keep the aspect ration while scaling. Rect can be moved freely. A small tooltip shows the position while the rect is moved and the width/height while scaling.

Bildschirmfoto 2020-04-16 um 13 35 36

issues:

  • Shift - Aspect ratio keeping doesn't seem to work properly

todo:

  • LESS MESS

  • Shift - Aspect ratio keeping on all handles & platforms(?)

  • User input for scaling

  • convert to propper class or addon

  • Restrain from scaling below zero. ofRectangle can have -width & -height ✓
    Done. Solution: It does scale below zero but on mouseReleased the rect is substituded with a standardized version of its own

About

rectTransform is an OpenFrameworks project that draws an ofRectangle and provides some of the functionalities like the photoshop "free transform"-tool we all know and love.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published