Skip to content

Deprecation warning for .fade() #212

@danny-burrows

Description

@danny-burrows

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions