Closed raylu closed 2 months ago
Good find! Definitely a bug
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.
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