Skip to content

Semi-transparent colors in sprites turn black on -Dnext #2026

Closed
@starry-abyss

Description

@starry-abyss
  • Flixel version: dev
  • OpenFL version: 3.6.1
  • Lime version: 2.9.1
  • Affected targets: neko, windows

Code snippet reproducing the issue:

package;

import flixel.FlxSprite;
import flixel.FlxState;
import flixel.util.FlxColor;

class PlayState extends FlxState {
    var sprite:FlxSprite;
    
    override public function create():Void {
        super.create();
        sprite = new FlxSprite();
        sprite.makeGraphic(300, 300, FlxColor.RED & 0x88FFFFFF);
        add(sprite);
        bgColor = FlxColor.GREEN;
    }
}

If I remove the & 0x88ffffff part, the sprite is plain red (which is good) on both legacy and next.


Observed behavior:
(next)
default

Expected behavior:
(legacy and Flash)
default

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions