mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Implemented eraser tool. Must move and resize layers at the same time.
Signed-off-by: npalomba <nicola.palomba@studenti.galileilivorno.gov.it>
This commit is contained in:
@@ -12,7 +12,7 @@ function updateCursor () {
|
||||
brushPreview.style.display = 'block';
|
||||
brushPreview.style.width = eraserSize * zoom + 'px';
|
||||
brushPreview.style.height = eraserSize * zoom + 'px';
|
||||
context.fillStyle = 'rgba(255, 0, 0, 0)';
|
||||
currentLayer.context.fillStyle = 'rgba(255, 0, 0, 0)';
|
||||
} else
|
||||
brushPreview.style.display = 'none';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user