mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Added fill mode for the rectangle tool
You can select the fill mode by clicking again on the rect button once you select it. Also added new icons.
This commit is contained in:
@ -73,11 +73,6 @@ function endRectSelection(mouseEvent) {
|
||||
// Updating the cursor
|
||||
updateCursor();
|
||||
|
||||
// NOW
|
||||
// the move tool stops working when esc is pressed
|
||||
// when the move tool is disabled, the control is given to the brush tool
|
||||
// the image data is added to the original layer when the move tool is disabled
|
||||
|
||||
//currentLayer.context.putImageData(imageData, startX, startY);
|
||||
}
|
||||
|
||||
@ -89,7 +84,7 @@ function drawRect(x, y) {
|
||||
// Clearing the vfx canvas
|
||||
vfxContext.clearRect(0, 0, VFXCanvas.width, VFXCanvas.height);
|
||||
vfxContext.lineWidth = 1;
|
||||
vfxContext.fillStyle = "black";
|
||||
vfxContext.strokeStyle = "black";
|
||||
vfxContext.setLineDash([4]);
|
||||
|
||||
// Drawing the rect
|
||||
|
Reference in New Issue
Block a user