Skip to content

Color.FromRGBA() creates incorrect color #117

@mr0x13f

Description

@mr0x13f

Example:
Color.FromRGBA(0xC9E4DEFF)
Expected:
[Rf:0.98039216, Gf=0.92941177, Bf=0.79607844, Af=1]
Actual:
[Rf:0.98039216, Gf=0.73333335, Bf=0.79607844, Af=1]

The green channel is not extracted correctly because the green channel mask shift is set incorrectly in Love.Color.cs at line 240.

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