Skip to content

Rounded rectangles have jagged edges? #7152

Open
@ChrisCPI

Description

@ChrisCPI

Version

  • Phaser Version: 3.90.0
  • Operating system: macOS 15.4.1
  • Browser: Google Chrome

Description

I'm not sure if this is a bug or if this is explicitly how its meant to behave, but I do find it strange that the rounded corners on rectangles set via setRounded() have jagged edges when the radius is about 9 or less. At 10 and above it starts to look a bit better, but still looks strange, especially when compared to rounded corners created via a graphics gameobject.

Example Test Code

https://phaser.io/sandbox/XE4yedss

This sandbox compares a rectangle with rounded corners (located on the left side) with a graphics object with similar settings, located on the right side.

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