alexwidua / figma-easing-gradients Goto Github PK
View Code? Open in Web Editor NEWFigma plugin for easing gradients by interpolating their color stops.
License: MIT License
Figma plugin for easing gradients by interpolating their color stops.
License: MIT License
Right now, interpolation happens (afaik) in sRGB gamma space. Since we're adding gradient stops, we can affect how the colors in the gradient are interpolated.
With a different color space, this would look more natural for example:
Options that might be interesting:
When the selected gradient node is nested (Frame, Group), the cloned node (which is used to preview and apply the gradient) is cloned
to [0,0] instead of the selected node's position.
Right now the plugin adds N = 15 steps between each stop, but this could be determined better dynamically
Each segment being a linear interpolation, we could pick
threshold
in RGBAfter using it for awhile, I wish I could click "reset" that would bring it back to its original state with just two color stops so that I could adjust the color, and then reapply the easing gradient.
(Via [at]baldur in Figma community, Comment Link)
Is there a way to do away with adjusting the spline curve manually for most use cases?
Assume two-gradient-stop case for simplicity.
I think there are two rough kinds of gradient:
I think the photoshop model seems slightly more intuitive for the easing case, with
Overall, I think that the midpoint adjusters in Ps don't lead to a nice-looking result. But, I like the idea and their function could nicely align to moving both handles in the both-slope-0 case
With my changes, it can be unintuitive where you add a gradient easing and go to change the transform on the gradient.
Then you reset the easing and the transform also resets.
Possible ways to fix?
Have you considered adding support for multiple stops + respecting the starting positions of the stops? If I have a gradient with multiple color stops, right now the plugin only takes the first and last colors into account, and also places them at 0% and 100%, respectively.
This results in angular gradients having this harsh transition point at 0%
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.