We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graphic.tint is a non-nullable Color, but it starts as null and the way to remove tint from a graphic is to set it back to null
Graphic.tint
Color
null
The text was updated successfully, but these errors were encountered:
Good find! Definitely a bug
Sorry, something went wrong.
We have loose types on parts of the project that allow these bugs to sneak through, adjusting this type should fix things. https://github.com/excaliburjs/Excalibur/blob/main/src/engine/Graphics/Graphic.ts#L60
Additionally we should drop a new tsconfig targeting this directory to incrementally shore up types.
fix: [#3119] Fix graphics type + apply strictness to Graphics types
4f94423
a5f8590
Successfully merging a pull request may close this issue.
Graphic.tint
is a non-nullableColor
, but it starts asnull
and the way to remove tint from a graphic is to set it back tonull
The text was updated successfully, but these errors were encountered: