Skip to content

Deprecation message for Color components (r,g,b) can induce errors #161598

@guidezpl

Description

@guidezpl

For example, @Deprecated('Use .r.') hides the fact that red was a value between 0 and 255, while r is a value between 0 and 1

Docs were improved with #160798, but deprecation message could be improved, mentioning that it is likely one must * 255 to obtain the same result.

cc @matanlurey

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: invalidIssue is closed as not valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions