Commit Graph

64 Commits (689c22b83c03a4cf5321e9c7f6fcff318b8ab75c)

Author SHA1 Message Date
Isaiah Odhner ce2c5ab45e Fix shape stroke offset (for line width > 1)
Broken in c871f14b6d (found with git bisect)
2019-10-10 20:28:25 -04:00
Isaiah Odhner 62f3d18438 WIP towards fixing performance with helper layer
Fun accidental behavior: draw weird bit patterns by zooming in and out with the grid.
2019-09-30 20:34:02 -04:00
Isaiah Odhner 40d85e5bb3 Hairline eraser preview border 2019-09-30 19:50:48 -04:00
Isaiah Odhner 27171c24ce WIP eraser preview 2019-09-30 19:50:48 -04:00
Isaiah Odhner 26084174ea Refactor 2019-09-30 19:50:48 -04:00
Isaiah Odhner b8fc07bae1 Fix grid for non-integer devicePixelRatio 2019-09-30 19:50:48 -04:00
Isaiah Odhner b8c60a1ebb WIP Grid
Currently always shown for scales where it's available.

TODO: View > Zoom > Show Grid menu item and Ctrl+G keyboard shortcut, and fix hiDPI scaling with non-integer devicePixelRatio
2019-09-30 19:50:48 -04:00
Isaiah Odhner a70cec382b Fix fill bucket tool 2019-09-24 16:09:13 -04:00
Isaiah Odhner c871f14b6d Fix remaining lint errors
- Deal with "no-redeclare" properly, by using `let`
- I still have eslint ignoring global variable stuff.
2019-09-21 11:59:30 -04:00
Isaiah Odhner 2babccdb49 Fix more lint errors 2019-09-21 11:33:01 -04:00
Isaiah Odhner cb4376c68c Fix lint errors and more Extras menu logic 2019-09-21 11:24:22 -04:00
Isaiah Odhner 604de6aceb Fix brush and pencil drawing offsets
Resolves #124
2018-07-27 14:04:40 -04:00
Isaiah Odhner db7cb4350c Refactor: support x/y radii for rounded rects 2018-06-29 01:01:55 -04:00
Isaiah Odhner 5b5c651f86 Update stroke size immediately on numpad +/- 2018-06-28 23:46:07 -04:00
Isaiah Odhner 275785a5fb Simplify 2018-06-28 23:23:57 -04:00
Isaiah Odhner 7aa6623cdb Clean up 2018-06-28 21:00:51 -04:00
Isaiah Odhner c0cf1b2788 Implement line width for ellipses
- Simplify and improve brush size handling
2018-06-28 20:18:47 -04:00
Isaiah Odhner d89b66efcb Implement line width for rounded rectangles 2018-06-28 19:14:32 -04:00
Isaiah Odhner 029a556ab5 For rectangle tool, draw stroke inside bounds 2018-06-28 14:46:25 -04:00
Isaiah Odhner 5bbc22d0fa Fix separate implementations both enabled 2018-06-27 18:03:02 -04:00
Isaiah Odhner 7417a82e0c Support patterns for line & curve tools 2018-06-27 17:11:36 -04:00
Isaiah Odhner 5669a07fe3 Fix zero-sized canvas errors 2018-06-18 15:53:59 -04:00
Isaiah Odhner d2eb35ed82 Clean up 2018-06-18 15:48:21 -04:00
Isaiah Odhner c1d99d03c7 Use WebGL for freeform select tool 2018-06-18 15:38:26 -04:00
Isaiah Odhner 3a15a7a917 Whoops (altho this shouldn't matter anymore) 2018-06-18 12:15:28 -04:00
Isaiah Odhner 75d81b7913 Fix performance for polygons and curves 2018-06-18 01:12:08 -04:00
Isaiah Odhner 9f4e24ce9c Optimize line drawing but not enough 2018-06-18 00:52:33 -04:00
Isaiah Odhner f7cd805ca3 Implement aliasing for curve tool (laggy tho) 2018-06-18 00:05:44 -04:00
Isaiah Odhner 2ce292834f Actually fix pattern alignment 2018-06-17 19:25:47 -04:00
Isaiah Odhner 4baca36b87 Move function up & out 2018-06-17 19:01:04 -04:00
Isaiah Odhner f12b36c671 Align patterns for polygon tool 2018-06-17 17:52:53 -04:00
Isaiah Odhner 1bdffc5376 Clean up 2018-06-17 17:52:53 -04:00
Isaiah Odhner 3dc8702448 Remove setDrawColor (not needed) 2018-06-17 17:52:53 -04:00
Isaiah Odhner e1dd79d5c2 Fix fill color when stroke size is 1 2018-06-17 17:52:53 -04:00
Isaiah Odhner 725d2bc66b Enable patterns for polygon strokes and fills 2018-06-17 17:52:53 -04:00
Isaiah Odhner 94fbbacae2 Enable patterns for polygon strokes > 1px 2018-06-17 17:52:53 -04:00
Isaiah Odhner 92feca2abc Support line width for polygon tool 2018-06-17 17:52:53 -04:00
Isaiah Odhner 83e45e020c Fix mixed indentation 2018-06-17 17:52:53 -04:00
Isaiah Odhner 1a93dcefab Refactor / clean up 2018-06-17 17:52:53 -04:00
Isaiah Odhner 747bf8c4f5 Use WebGL for polygon tool preview 2018-06-17 17:52:53 -04:00
Isaiah Odhner 0ed2424f9a Clean up 2018-06-17 17:52:53 -04:00
Isaiah Odhner e5b3c5be8b Use WebGL for Polygon tool 2018-06-17 17:52:53 -04:00
Isaiah Odhner 6165ecaa66 Replace colors globally 2018-01-25 03:51:12 +00:00
Isaiah Odhner af7995df77 Disable image smoothing everywhere 2018-01-21 21:02:45 +00:00
Isaiah Odhner 376fda7361 Optimize unnecessarily
and simplify returning an Array
2018-01-17 22:18:52 -05:00
Isaiah Odhner e251945f38 Allow switching transparency option of active selection
Also add some cleanup code to TextBox, while I'm at it
2018-01-17 20:13:02 -05:00
Isaiah Odhner 7d22db9caa Fix flood fill algorithm
Fixes #10
2017-05-25 03:07:10 +00:00
Isaiah Odhner 5f664f7719 Add and fix some shape styles
Implement support for line widths in the Line and Polygon tools, and fix the coloring of the shape tools (Polygon etc.)
2016-11-06 00:13:54 +00:00
Isaiah Odhner 401fa043b6 Wrap when rasterizing text 2016-11-05 19:52:44 +00:00
Isaiah Odhner 3b33e7c2ff Store current colors in an object (not an array) 2015-02-23 19:18:07 -05:00