GithubHelp home page GithubHelp logo

Add support for Bezier curves. about fusion HOT 4 CLOSED

elttob avatar elttob commented on May 8, 2024 1
Add support for Bezier curves.

from fusion.

Comments (4)

dphfox avatar dphfox commented on May 8, 2024 1

I assume you're talking about cubic Bezier curves, similar to how they might be implemented in CSS?

I think it'd be good to include some hypothetical usage, so here's how I think an API like this could work:

local position = UDim2.fromScale(0.25, 0.25)

local smoothPosition = Bezier(position, Vector2.new(0.17, 0), Vector2.new(0.02, 0.97)) 
-- 2 control points for cubic Bezier easing curve - starts at (0, 0) and ends at (1, 1)
-- could be replaced by state objects containing Vector2s!
-- X coordinates are clamped between 0 and 1 to ensure one Y solution for every X between 0 and 1

from fusion.

howmanysmall avatar howmanysmall commented on May 8, 2024

That's exactly what I'd want. I'd do it how it was done in BoatTween (although there is an error on it) instead of Vector2s though.

from fusion.

dphfox avatar dphfox commented on May 8, 2024

Blocked by #87

from fusion.

dphfox avatar dphfox commented on May 8, 2024

Merging with #87

from fusion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.