HaxeFlixel / HaxeFlixel/flixel
Multiple outlines, shadows and gradients for FlxText
Nobody has claimed this yet.
- Dominant language
- Haxe
- Stars
- 2.2k
- Forks
- 522
- Avg merge
- 34m
- Merged PRs (30d)
- 1
Description
Presently, it is very difficult to make a FlxText look distinct. I wish to improve FlxText to make it possible to have multiple outlines, multiple shadows, gradients, and perhaps other effects. What I would like would be a breaking change, so before I go ahead and try it, I'd like some feedback.
I would like to change the following:-
- Remove
borderStyleand its related properties. (Since when did a shadow count as a border?) - Make a general
FlxTextEffectto represent the various filters. - Make a
FlxTextOutline,FlxTextGradient, andFlxTextShadow. - Add an array of
FlxTextEffects toFlxText. - Add shorthand methods,
addOutline(),addShadow(), andaddGradient()?
Note that effects would be applied cumulatively. This would make text significantly more customizable. Instead of just having a single border or outline, you could have outlined text with a shadow, or shadowed text with an outline around the shadow etc..
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
The issue names no files, tests, or entry points. Start by reviewing the existing FlxText borderStyle and related properties, then seek maintainer feedback on the proposed FlxTextEffect hierarchy and cumulative effects. The issue has no agreed acceptance criteria, so completion would require an approved design before implementation.
Written by the indexing model from the issue text.
Assessment
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100