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
when texture source use resize(),it shouldn't change the current context color ! and resolution!
if i don't use source.resize ,it behavior cant effect canvas context
but if i use source resize ,it will become black texture to display!
and it cant use the fillstyle i provided, and cant fill text anymore!
Expected Behavior
do you think what is the correct behavior ?
fill correct color and fill correct text!!
Steps to Reproduce
// resize codesprite.texture.source.resize(300,300);sprite.texture.frame.width=300;sprite.texrure.frame.height=300;sprite.texture.update();sprite.onViewUpdate();//when using texture.source.resize().it will occur incorrect behavior!
canvas should be reset when using source.resize()
context.fillstyle,context.strokestyle
options of context should be reset
i dont know what is the reason cause this behavior?
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Current Behavior
when texture source use resize(),it shouldn't change the current context color ! and resolution!
if i don't use source.resize ,it behavior cant effect canvas context
but if i use source resize ,it will become black texture to display!
and it cant use the fillstyle i provided, and cant fill text anymore!
Expected Behavior
do you think what is the correct behavior ?
fill correct color and fill correct text!!
Steps to Reproduce
Environment
pixi.js
version: e.g. 8.1.0Possible Solution
canvas should be reset when using source.resize()
context.fillstyle,context.strokestyle
options of context should be reset
i dont know what is the reason cause this behavior?
Additional Information
No response
The text was updated successfully, but these errors were encountered: