mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Started magic wand
This commit is contained in:
17
js/tools/MagicWandTool.js
Normal file
17
js/tools/MagicWandTool.js
Normal file
@@ -0,0 +1,17 @@
|
||||
class MagicWandTool extends SelectionTool {
|
||||
constructor (name, options, switchFunc, moveTool) {
|
||||
super(name, options, switchFunc, moveTool);
|
||||
Events.on('click', this.mainButton, switchFunc, this);
|
||||
}
|
||||
|
||||
onEnd(mousePos) {
|
||||
super.onStart(mousePos);
|
||||
}
|
||||
|
||||
getSelection() {
|
||||
// this.currSelection should be filled
|
||||
|
||||
this.drawSelectedArea();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user