Skip to content
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

Deprecation warning for .fade() #212

Closed
danny-burrows opened this issue Dec 29, 2024 · 1 comment
Closed

Deprecation warning for .fade() #212

danny-burrows opened this issue Dec 29, 2024 · 1 comment

Comments

@danny-burrows
Copy link

The deprecation warning here seems to suggest that the .fade() method on Color has been superceded by itself?

/// Color fade-in or fade-out, alpha goes from 0.0f to 1.0f
#[inline]
#[deprecated = "Has been superseded by .fade()"]
pub fn fade(&self, alpha: f32) -> Color {
unsafe { ffi::Fade(self.into(), alpha).into() }
}

As far as I can see in raylib I believe the existing pattern still makes sense, would it be possible to remove the deprecation warning?

@danny-burrows
Copy link
Author

Ah, I now see from #205 that this is addressed elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant