diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-03-31 13:12:41 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-03-31 13:12:41 +0200 |
| commit | d9f1628cbc3e96c584279b8d58e2e2c2a0d75b56 (patch) | |
| tree | 4341725d1a741536eee81562f89a0e8802321083 /js/ui/controls.js | |
| parent | 6048890a8ee3750d8d0c252b7f77a1ed0bf42259 (diff) | |
mirror x/y
Diffstat (limited to 'js/ui/controls.js')
| -rw-r--r-- | js/ui/controls.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/ui/controls.js b/js/ui/controls.js index 1dd83c7..8ffdc64 100644 --- a/js/ui/controls.js +++ b/js/ui/controls.js @@ -270,6 +270,17 @@ var controls = (function(){ this.update(canvas.pixels) } + controls.mirror_x = new BlurredCheckbox (mirror_x_checkbox) + controls.mirror_x.use = function(state){ + window.mirror_x = typeof state == "boolean" ? state : ! window.mirror_x + this.update(window.mirror_x) + } + controls.mirror_y = new BlurredCheckbox (mirror_y_checkbox) + controls.mirror_y.use = function(state){ + window.mirror_y = typeof state == "boolean" ? state : ! window.mirror_y + this.update(window.mirror_y) + } + // controls.vertical = new BlurredCheckbox (vertical_checkbox) |
