Handles, matrices and colours that behave
Formo team · 12 November 2021
Hello,
On our blog this year we kept explaining the same three things over and over, with live examples you can drag around. Here they are in one place.
Handles you can grab
A number in a box is exact but slow. A gizmo is a handle on the canvas that stands in for that number. In our potion drawing tool you drag a line to change proportions and drag a little sun to change the light. No numbers, and you see the result as you move.
The editor we are building does the same: a rectangle gets a corner-radius handle, a star gets handles for point count and depth, a selected shape gets handles for size and rotation.
Drag a handle, watch the shape.
Moving, turning, scaling — in one tidy box
Every move, rotation, scale and skew can be written as a single small table of numbers called a matrix. Combine two transforms and you simply combine their tables. This is why nested shapes (a hand inside an arm inside a body) stay together without any hacks.
Our blog has a page that lets you drag a square around and watch the table change. If you have ever wondered why rotating a group and then scaling it gives a different result than the other way round, it explains it.
Colours that match what you see
A computer's usual colour system makes strange promises: two colours with the "same brightness" often look completely different. OKLCH describes colours the way an eye does: how light, how vivid, which hue. Change only the hue and the colour feels like the same family; change only the lightness and it looks as bright as before, only darker.
We use it for the potion tool's liquid colours and for the guide and selection colours in the editor we are building, so they stay readable on any background.
Try the potion tool on our blog and tell us what you think.
As always, let us know what you think on our Discord.