pixijs / particle-emitter

A particle system for PixiJS
http://pixijs.io/particle-emitter/docs
MIT License
793 stars 125 forks source link

Custom easing has no clear documentation. #105

Open Alchemist0823 opened 5 years ago

Alchemist0823 commented 5 years ago

Greensock CustomEase uses SVG format now. It doesn't support Greensock CustomEase anymore.

andrewstart commented 5 years ago

Yeah, the easing here really needs an overhaul, including a tool that isn't external. It's a long term goal, but in the short term I should be able to make sure it allows for a very basic easing method, so that you can generate it however you want.

PotooGryphon commented 4 years ago

Has this feature been updated, since the last response to the thread? I'm also interested in the custom ease feature for the particles

andrewstart commented 4 years ago

While I have learned more about bezier curves in the course of my work, I haven't had the time to make any changes - the whole editor needs a rewrite for several reasons. However, the editor should accept a function that takes a number from 0-1 and outputs a number of your choice as an easing method in the config. You wouldn't be able to save it in a JSON file, but you could modify the config at development or runtime to insert a function.

// a function like this
function roundEasing(time) {
    return Math.round(time);
}
PotooGryphon commented 4 years ago

Thank you for the quick response. Looking forward to see any updates with this feature.