Commit Graph

360 Commits

Author SHA1 Message Date
Amrit Rai 08eb130301
Resolved previous color selection i,e issue #111 2023-02-09 19:09:00 +05:30
amritrai5757 153f0366d4 Issue of removal of all colors from palette 2023-01-03 13:57:55 +00:00
amritrai5757 d928f897a4 Issue of removal of all colors from palette 2023-01-03 12:58:14 +00:00
amritrai5757 901fdced90 Fixed removal of all the colors from palette 2023-01-03 06:29:19 +00:00
Nicola d9bde9bee6
Merge pull request #107 from Lattay/support_hex_palette
Implement importing GIMP and .hex palettes.
2022-12-27 21:57:47 +01:00
Theo Cavignac a36281935b Implement loading a palette from the menu. 2022-12-27 18:18:38 +01:00
Theo Cavignac 0e676184a9 Fix a bug due to non standard attribute. 2022-12-23 00:00:54 +01:00
Theo Cavignac c08c7f2d0b Refactor palette loading. 2022-12-22 23:37:38 +01:00
Theo Cavignac 845e384ae0 Implement importing GIMP and .hex palettes. 2022-12-22 21:17:49 +01:00
Nicola 74665db3de Fixed tool color
Fixed ellipse filling the whole canvas when changing tool
2022-10-24 15:04:09 +02:00
Nicola f9a87cc46e Final refinements 2022-10-24 13:06:41 +02:00
Nicola e51f510392 Merge branch 'master' into pxlvxl-master 2022-10-24 12:48:08 +02:00
Nicola 9e250c015e Added willReadFrequently attribute 2022-10-24 12:40:34 +02:00
Nicola dca2748a4e Added back advanced color picker support 2022-10-24 12:35:23 +02:00
Nicola 3b83727c73 Added buttons to colour menu
Added buttons to add, remove, zoom in and zoom out. Also implemented palette zooming
2022-10-24 12:11:40 +02:00
NSSure 854a937da5 Init flag to prevent duplicate window events 2022-10-22 06:02:00 -04:00
NSSure 2e8f3f414b Removed test code updating palette 2022-10-22 05:48:34 -04:00
NSSure b8d1f11f93 Added ability to select import position 2022-10-22 05:46:48 -04:00
NSSure eb139ef8e7 Reset import image window on open 2022-10-21 04:18:10 -04:00
NSSure 02806c7efa Added file option to import image to current layer 2022-10-21 03:52:55 -04:00
Nicola f31fd5b505 Attempted to resize palette squares on scroll 2022-10-06 11:20:09 +02:00
Nicola 7672a034c8 Fixed canvas-view being a div and not a canvas 2022-10-06 10:16:19 +02:00
Matthew Daly 1a6b8320e1 Fix canvasSize undefined 2022-08-24 00:34:19 -04:00
Matthew Daly 45016fbea1 Only register export click event once (#89) 2022-08-23 23:04:18 -04:00
Jaman Brundage 12a3283790 another push
Fixed issue with color saving
Redesigned color select section
2022-03-23 08:47:57 -04:00
pxlvxl 5f09ceddcf push7 2022-02-27 09:44:16 -05:00
pxlvxl bc7561b72d push6 2022-02-27 09:20:08 -05:00
pxlvxl fedca8f95e push5 2022-02-27 09:14:42 -05:00
pxlvxl 6ac04e5338 push3 2022-02-25 14:06:44 -05:00
pxlvxl 012f96ae8d push2 2022-02-25 09:49:30 -05:00
pxlvxl ca32746d48 Merge branch 'master' of https://github.com/pxlvxl/pixel-editor 2022-02-23 11:52:41 -05:00
pxlvxl f499662afc Various changes
- added `/:paletteSlug/:resolution` functionality for localhost testing
	- created `currFile.sublayers` for *things that should zoom with the canvas layers*
	- `currFile.layers` now solely contains the canvas layers
	- added `getProjectData` to `FileManager`'s exported methods
	---
	- added `FileManager.localStorageSave` (it's basically just: localStorage.setItem("lpe-cache",FileManager.getProjectData()))
	- added `FileManager.localStorageCheck` (it's basically just: `!!localStorage.getItem("lpe-cache")`)
	- added `FileManager.localStorageLoad` (it's basically just: `return localStorage.getItem("lpe-cache")`)
	- added `FileManager.localStorageReset` (for debugging purity)
	---
	- calling `FileManager.localStorageSave()` on mouse up (we should stress test this)
	---
	- changed lpe file format to `{canvasWidth:number,canvasHeight:number,selectedLayer:number,colors:[],layers:[]}`
	- added backward compatibility for the old lpe file format
	---
	- added some canvas utility functions in `canvas_util`
	- added Unsettled's color similarity utility functions in `color_util2`
	---
	- html boilerplate - wang tiles
	-
	- POC - tiny text boilerplate
	- POC - tiny text font scraper
	---
	- WIP - added two optional url route parameters `/:paletteSlug/:resolution/:prefillWidth/:prefillBinaryStr`
	- WIP POC - hbs_parser.js (outputs tree data about hbs file relationships)
2022-02-23 11:36:15 -05:00
pxlvxl a1757553cf Various changes
- added `/:paletteSlug/:resolution` functionality for localhost testing
	- created `currFile.sublayers` for *things that should zoom with the canvas layers*
	- `currFile.layers` now solely contains the canvas layers
	- added `getProjectData` to `FileManager`'s exported methods
	---
	- added `FileManager.localStorageSave` (it's basically just: localStorage.setItem("lpe-cache",FileManager.getProjectData()))
	- added `FileManager.localStorageCheck` (it's basically just: `!!localStorage.getItem("lpe-cache")`)
	- added `FileManager.localStorageLoad` (it's basically just: `return localStorage.getItem("lpe-cache")`)
	- added `FileManager.localStorageReset` (for debugging purity)
	---
	- calling `FileManager.localStorageSave()` on mouse up (we should stress test this)
	---
	- changed lpe file format to `{canvasWidth:number,canvasHeight:number,selectedLayer:number,colors:[],layers:[]}`
	- added backward compatibility for the old lpe file format
	---
	- added some canvas utility functions in `canvas_util`
	- added Unsettled's color similarity utility functions in `color_util2`
	---
	- html boilerplate - wang tiles
	-
	- POC - tiny text boilerplate
	- POC - tiny text font scraper
	---
	- WIP - added two optional url route parameters `/:paletteSlug/:resolution/:prefillWidth/:prefillBinaryStr`
	- WIP POC - hbs_parser.js (outputs tree data about hbs file relationships)
2022-02-23 11:16:23 -05:00
Nicola 40299853ca Fixed tool tutorials preventing user to draw under them even when hidden 2022-02-05 18:35:51 +01:00
Nicola 953dc40bc4 Fixed bugs
Hid brush size arrows in firefox, let the user cancel a selection by clicking outside the canvas, fixed lasso tool not detecting the selection if ending it outside the canvas.
2022-02-04 22:13:11 +01:00
Nicola c5ede4cc69 Fixed selection tools dragging when the cursor is not in the selection 2022-01-31 23:17:15 +01:00
Nicola cdabbb4a5c Added tool size in the top bar 2022-01-31 23:12:28 +01:00
Nicola 82aa5ab114 Fixed topbar css
Aded InputComponents.js to take care (dynamically create, add events) of input elements.
2022-01-31 00:16:27 +01:00
Nicola 79a3c07b82 Fixed ellipse bug, fixed brush size bug 2022-01-30 22:53:59 +01:00
Nicola edf5d77ffd Finished tooltorials 2022-01-30 00:09:43 +01:00
Nicola 428ffe80f8 Fixed #82 2022-01-29 21:36:25 +01:00
Nicola b616579c65 Continued tool tutorials
Also fixed fill tool history bug
2022-01-25 23:47:01 +01:00
Nicola 2e360dcf51 Started tool tutorials 2022-01-25 00:33:23 +01:00
Nicola 33f362ef09 Merge branch 'master' into next-update 2022-01-24 22:10:05 +01:00
Nicola 1b42c0b7ca Fixed brush not working on start 2022-01-23 18:56:55 +01:00
Nicola cd1d0cd5eb Merge branch 'master' into next-update 2022-01-23 16:45:27 +01:00
Nicola d762c04ba0 Fixed fill tool bug 2022-01-23 16:07:04 +01:00
Nicola cc460446b6 Finished ellipse tool 2022-01-23 13:32:23 +01:00
Nicola f78d99053b Implemented empty ellipse 2022-01-23 12:41:42 +01:00
Nicola 832f36992b Added ellipse tool setup 2022-01-22 16:02:10 +01:00