Skip to content

Support obtaining the curve of AnimatableCurve #19313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MushineLament opened this issue May 20, 2025 · 0 comments
Open

Support obtaining the curve of AnimatableCurve #19313

MushineLament opened this issue May 20, 2025 · 0 comments
Labels
C-Feature A new feature, making something new possible S-Needs-Triage This issue needs to be labelled

Comments

@MushineLament
Copy link

What problem does this solve or what need does it fill?

Allow modification of known animation curves, random or targeted adjustments to animation curves.

What solution would you like?

impl<P, C> Debug for AnimatableCurve<P, C>
where
    C: Debug,
{
    fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
        f.debug_struct("AnimatableCurve")
            **.field("curve", &self.curve)**
            .finish()
    }
}

I have noticed that dyn AnimableCurve supports printing on debug traits that have already been implemented, so I think it is possible to allow C generics to return data when implementing a certain trait.

So only when the C generic supports a certain trait, will it return the actual data of AnimableCurve.

Meanwhile, this trait supports converting data, just like converting any trait to an actual type.

What alternative(s) have you considered?

Not.

Additional context

I haven't found any known AnimatableCurve to obtain actual curve data, please let me know if there is.

@MushineLament MushineLament added C-Feature A new feature, making something new possible S-Needs-Triage This issue needs to be labelled labels May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Feature A new feature, making something new possible S-Needs-Triage This issue needs to be labelled
Projects
None yet
Development

No branches or pull requests

1 participant