Skip to content

Added Cardinal Outlines#3593

Open
TracedInPurple wants to merge 1 commit intoHaxeFlixel:devfrom
TracedInPurple:dev
Open

Added Cardinal Outlines#3593
TracedInPurple wants to merge 1 commit intoHaxeFlixel:devfrom
TracedInPurple:dev

Conversation

@TracedInPurple
Copy link
Copy Markdown

Works like the fast outline method, but uses cardinal directions instead of diagonals. This generally looks better for pixelated fonts.

You could also treat this as a variant of OUTLINE_FAST. Renaming OUTLINE_FAST to OUTLINE_DIAGONAL might make things clearer, but it could break existing projects, so it’s probably not worth changing.

OUTLINE_FAST (diagonal)

image_2026-04-18_182950061

OUTLINE_CARDINAL

image

OUTLINE (the normal one)

image

Does the same as the fast version of the outline but does it cardinally instead of diagonally

You could also consider it being a variant of OUTLINE_FAST.
I dont know if it were to be a good idea renaming OUTLINE_FAST into OUTLINE_DIAGONAL because of perhaps many projects using it
But it would definitely be a possibility
@EkicalPog
Copy link
Copy Markdown

God this is so fucking hot.

@toffeecaramel
Copy link
Copy Markdown

WE NEED THIS!!!!!

Copy link
Copy Markdown
Contributor

@Jaduplex Jaduplex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

God yes.

@Geokureli Geokureli added this to the 6.2.0 milestone Apr 19, 2026
Comment on lines +1301 to +1305
final i = delta * (iter + 1);
func(-i, 0); // middle-left
func(i * 2, 0); // middle-right
func(-i, -i); // upper-middle
func(0, i * 2); // lower-middle
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still need to test this locally, but I'm surprised by i*2 and upper middle being -i, -i. Looking at OUTLINE_FAST I would have expected the following

Suggested change
final i = delta * (iter + 1);
func(-i, 0); // middle-left
func(i * 2, 0); // middle-right
func(-i, -i); // upper-middle
func(0, i * 2); // lower-middle
final i = delta * (iter + 1);
func(-i, 0); // left
func( i, 0); // right
func( 0, -i); // up
func( 0, i); // down

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's definitely a mistake on my end
i did not realize that FlxBitmapText seems to absolute instead of incremental like FlxText

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants