23rd Jan 2022, 12:44 AM
Aiwbn H
Aiwbn H - avatar
2 odpowiedzi
+ 1
You need to draw your rect again with updated value and remove old one I dont know very well canvas, so old rect have some border :D Best is to make some draw function, to dont repeat same code. Set parameters to take color, and you can have both draw and delete old in one code. https://code.sololearn.com/Wx8Illqc150O/?ref=app
23rd Jan 2022, 1:17 AM
PanicS
PanicS - avatar
+ 1
Ty man
23rd Jan 2022, 1:40 AM
Aiwbn H
Aiwbn H - avatar