HaxeFlixel / HaxeFlixel/flixel
Honor alpha channel in most colors
Nobody has claimed this yet.
- Dominant language
- Haxe
- Stars
- 2.2k
- Forks
- 522
- Avg merge
- 34m
- Merged PRs (30d)
- 1
Description
Flixel uses ARGB colors everywhere but usually has a color and alpha field anyway, this is redundant. We should honor the alpha channel of a color, especially in existing cases where there is no corresponding alpha field for some color property. One example is FlxInputText.selectionColor.
In cases above, where we enable the alpha component, we should enable it for all colors in that class, for consistency. Even if the others have a separate alpha field, we should multiply both for backwards compatibility and deprecate the alpha field, pointing towards the FlxColor's alphaFloat.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with FlxInputText.selectionColor and the related pull request 3491, then inspect the other color properties in that class for the same pattern. Review how FlxColor exposes its alphaFloat and how existing alpha fields are applied. Done means the affected color properties consistently honor the color alpha while preserving compatibility with existing alpha fields.
Written by the indexing model from the issue text.
Assessment
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100