Finished preview rectangle

When the rectangle selection tool is selected, a rect preview is drawn on the vfx layer. There's also a function that gets the selected pixels, next step is moving them around.
This commit is contained in:
unsettledgames
2020-03-04 19:38:35 +01:00
parent 8c94a951e2
commit c714f5c004
4 changed files with 43 additions and 9 deletions

View File

@ -20,6 +20,8 @@ function getCursorPosition(e) {
// TODO: apply the function below to every getCursorPosition call
// TODO: FIX THIS BELOW
//get cursor position relative to canvas
function getCursorPositionRelative(e, layer) {
var x;