mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Fixed bug in checkerboard creation.
Signed-off-by: npalomba <nicola.palomba@studenti.galileilivorno.gov.it>
This commit is contained in:
@@ -8,7 +8,6 @@ function line(x0,y0,x1,y1) {
|
||||
var err = dx-dy;
|
||||
|
||||
while (true) {
|
||||
console.log("drawing line");
|
||||
//set pixel
|
||||
if (currentTool == 'pencil') {
|
||||
context.fillRect(x0-Math.floor(brushSize/2), y0-Math.floor(brushSize/2), brushSize, brushSize);
|
||||
|
||||
Reference in New Issue
Block a user