13 Commits

Author SHA1 Message Date
Gordon Williams
18490b918e fixing tests after recent fillPoly/vector font changes 2020-07-14 10:15:11 +01:00
Ben Whittaker
21d8c727a7 Remove half-pixel offset from fillPoly
This makes the results of fillPoly align with those of drawPoly when
both are fed whole-pixel coordinates.

For applications where it makes a noticeable difference the offset can
be added manually before calling fillPoly, which is what the vector
font rendering code now does.
2020-06-09 19:12:39 -04:00
Ben Whittaker
2f44530005 Include accented characters directly in fontmap 2020-06-01 19:52:01 -04:00
Ben Whittaker
d31fa08e4e Add tests that use fillPoly and drawPoly together 2020-05-31 21:41:05 -04:00
Ben Whittaker
b3531c147d Make fillPoly rounding slightly more consistent 2020-05-31 21:34:25 -04:00
Ben Whittaker
f591de8f8a Fix fillPoly overlap
Fix a corner case which could result in adjacent polygons overlapping
2020-05-31 21:33:32 -04:00
Ben Whittaker
0ac000d53d Add fillPoly overlap test
Adds a test that illustrates a corner case where there is an overlap
between adjacent polygons drawn by drawPoly
2020-05-31 21:32:50 -04:00
Gordon Williams
4d59fc198f fillPoly rounding tweak - https://github.com/espruino/Espruino/issues/1796#issuecomment-635963433 2020-05-29 14:19:48 +01:00
Gordon Williams
b8f4bcfc5c update test 2020-05-27 15:26:19 +01:00
Gordon Williams
42bc834345 Graphics.fillPoly now uses a more normal fill algorithm that doesn't attempt to fill to the top right (fix #1796) 2020-05-27 10:45:47 +01:00
Gordon Williams
feb45fe737 Fix new vector font - accidentally committed one with too few points
Graphics.fillPoly now uses 4 bit fixed point internally
2020-05-21 09:06:17 +01:00
Gordon Williams
a5116134d9 Fixed issues with unfilled scanlines 2019-12-09 16:46:23 +00:00
Gordon Williams
34907f5f7d first attempt at a smarter fillPoly that'll do irregular polygons. Seems promising but there are gaps when rendering vector fonts 2019-12-09 16:06:02 +00:00