Skip to content

[Phaser 4 RC5] Grid stroke size broken #7205

@Grimshad

Description

@Grimshad

Version

Phaser 4 RC5

Description

In scene.add.grid(...) the Grid factory pulls the arguments in order and passes them straight into new Grid(...). Inside the constructor, when it sees strokeFillColor defined, it immediately calls setStrokeStyle(strokeFillColor, strokeFillAlpha). The factory treats the gridColor argument as “stroke color” but leaves the default width argument empty, the constructor ends up using that same color as the stroke width (lineWidth = 0x6b7280) gives us a stroke width of 7 million -_-

Metadata

Metadata

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