You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without the openfl-disable-graphics-upscaling flag, it behaves as expected for all values of the constants CACHE_AS_BITMAP, START_AT_ZERO, and USE_AS_MASK:
Set openfl-disable-graphics-upscaling, though, and things get weird. Different values of CACHE_AS_BITMAP, START_AT_ZERO, and USE_AS_MASK generate very different results.
With START_AT_ZERO = true, nothing ever renders. I expect this is because the bitmap is generated with scale of 0, despite having set scaleX and scaleY to 1 earlier:
With START_AT_ZERO = false and CACHE_AS_BITMAP = true, the circle is cached with scale 0.1 and scaled up from there. This is alright, but I would expect the cached bitmap to be of the initial scale of 1:
With START_AT_ZERO = false and CACHE_AS_BITMAP = false, scaling doesn't work at all. Instead, we get translation of the circle scaled to 0.1:
Further, with USE_AS_MASK = true then we always get the translation behaviour, regardless of the CACHE_AS_BITMAP value:
The text was updated successfully, but these errors were encountered:
Animated scaling of vector shapes behaves very differently when the
openfl-disable-graphics-upscaling
is set.This code draws a circle and animates its scale:
Without the
openfl-disable-graphics-upscaling
flag, it behaves as expected for all values of the constantsCACHE_AS_BITMAP
,START_AT_ZERO
, andUSE_AS_MASK
:Set
openfl-disable-graphics-upscaling
, though, and things get weird. Different values ofCACHE_AS_BITMAP
,START_AT_ZERO
, andUSE_AS_MASK
generate very different results.With
START_AT_ZERO = true
, nothing ever renders. I expect this is because the bitmap is generated with scale of0
, despite having setscaleX
andscaleY
to1
earlier:With
START_AT_ZERO = false
andCACHE_AS_BITMAP = true
, the circle is cached with scale0.1
and scaled up from there. This is alright, but I would expect the cached bitmap to be of the initial scale of1
:With
START_AT_ZERO = false
andCACHE_AS_BITMAP = false
, scaling doesn't work at all. Instead, we get translation of the circle scaled to0.1
:Further, with
USE_AS_MASK = true
then we always get the translation behaviour, regardless of theCACHE_AS_BITMAP
value:The text was updated successfully, but these errors were encountered: