Fix clearRect for [0, 0.5]
This commit is contained in:
parent
457800caa3
commit
ee7dc953bf
@ -326,7 +326,7 @@ context.translate(0.5, 0.5);
|
|||||||
function drawScene() {
|
function drawScene() {
|
||||||
ReactDOM.render(<App />, rootElement);
|
ReactDOM.render(<App />, rootElement);
|
||||||
|
|
||||||
context.clearRect(0, 0, canvas.width, canvas.height);
|
context.clearRect(-0.5, -0.5, canvas.width, canvas.height);
|
||||||
|
|
||||||
elements.forEach(element => {
|
elements.forEach(element => {
|
||||||
element.draw(rc, context);
|
element.draw(rc, context);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user