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:
unsettledgames
2020-03-07 22:34:12 +01:00
parent 30282fe795
commit 3e5b05bb6b
6 changed files with 26 additions and 23 deletions

View File

@ -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