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
MaBecker
aa5a9e72db
fix comments
2019-12-09 15:03:20 +01:00
MaBecker
e6b64c47e1
new ellipse
...
might be a bit slower
has no spilkes
2019-12-09 12:39:43 +01:00
Gordon Williams
1921e46c12
Fix build issue after recent graphics changes #1715
2019-12-06 20:12:04 +00:00
Gordon Williams
9d5b6f9339
Add Graphics.setClipRect to allow draw ops to be restricted to a certain area
...
Bangle.js: add 'null' LCD mode to stop apps from drawing
Bangle.js: add Bangle.getLCDMode
2019-12-04 17:00:05 +00:00
Gordon Williams
3751dc8453
Add terminal and lowres modes to emulator, and attempt to remove as many emscripten-related hacks as possible so we follow Bangle.js closely
2019-12-03 11:01:36 +00:00
Gordon Williams
e69770722a
Added ability to compile Espruino to JavaScript with Emscripten
2019-11-25 12:16:30 +00:00
Gordon Williams
041827718b
Allow drawString with a filled background, which allows flickerless writing on non-double-buffered screens
...
fillRect now takes a color
2019-10-23 17:02:29 +01:00
Gordon Williams
0dfc922100
Just use ints when passing coordinates around. Using short just added about 1k of extra code!
2019-10-23 16:24:39 +01:00
Gordon Williams
c9168d8d24
Add menu,tweaks, fix GPS sign, pad bootloader down for watch
2019-10-03 09:41:18 +01:00
Gordon Williams
d334d0a92a
Reliable LCD on F18
2019-10-01 10:29:45 +01:00
Gordon Williams
07d9e4668c
Pulled SPI LCD code out of hackstrap.c
2019-09-24 10:44:38 +01:00
Gordon Williams
2eb813d61a
Graphics.setFont("4x6",2) will now double the size of a bitmap font
2019-09-23 17:33:00 +01:00
Gordon Williams
bcab8a2089
Added Graphics.getFont/setFont/getFonts
...
Added Graphics.getFontHeight
Added option to compile in 6x8 fixed-width fonts
2019-08-29 12:46:22 +01:00
Gordon Williams
0476b9ef61
add NO_VECTOR_FONT to allow builds without vector font in them
2019-05-01 09:47:14 +01:00
Gordon Williams
d0fa7167bf
Allow Graphics.clear(true) to reset state (font, color, etc) to default as well as clearing the screen ( fix #1615 )
2019-02-20 11:21:26 +00:00
Gordon Williams
0dc0390e42
Add Graphics.fill/drawEllipse and move fill/drawCircle to use the same code
2018-12-20 18:00:01 +00:00
Gordon Williams
3d63b355ea
Fix potential out of bounds Graphics.scroll
2018-10-22 10:48:58 +01:00
Gordon Williams
ed6fad079c
Fix rounding errors in fillPoly -> improve vector font rendering
2018-06-01 09:05:48 +01:00
Gordon Williams
0767d398ff
Remove Graphics.setFontAlign and Graphics.getModified on devices with low flash memory
2018-05-18 14:12:09 +01:00
Gordon Williams
c4df13f293
oops
2018-02-10 08:59:56 +00:00
Gordon Williams
12b83df7ff
fix esp32 and linux build errors
2018-02-10 08:57:24 +00:00
Gordon Williams
dbe0d63ac6
Speed improvements for ArrayBuffer Graphics
2018-02-06 15:16:45 +00:00
Gordon Williams
2e0a7de035
Added 'Terminal' class with built-in VT100 terminal
2018-02-06 11:01:28 +00:00
Gordon Williams
211eb99d01
Added Graphics.scroll command to scroll graphics contents
2018-02-06 09:32:58 +00:00
Gordon Williams
f6a52724b2
logo
2018-02-05 17:01:08 +00:00
Gordon Williams
f6f65e9ed5
more warning squishing
2018-01-16 15:45:31 +00:00
Gordon Williams
735c014659
Internal: Added initialiser argument to jsvNewStringOfLength
...
Internal: Added jsvObjectSetChildVar/jsvObjectSetChildVar/jsvObjectSetChildVar
Internal: Fix jsvCopy if given a NAME_INT/etc
Added ES6's Object.assign
2017-08-31 16:42:31 +01:00
Gordon Williams
8a230ad5bb
Disable Graphics.createCallback on devices with small amounts of flash memory - rarely used on those devices and fixes HYSTM32_28 build
2017-08-29 12:55:23 +01:00
Gordon Williams
4505eed87e
fix compile errors
2016-09-12 15:45:38 +01:00
Owen McAteer
cfa49a4dc7
Fixed comflicts with master.
2016-09-12 16:08:40 +02:00
Owen McAteer
65ae9ffb35
Use faster fillRech function.
2016-09-12 16:00:38 +02:00
Owen McAteer
72e3322e89
Corrected wrong function name.
2016-09-12 15:57:15 +02:00
Owen McAteer
adfc0baa3a
Added Graphics.fillCircle(x, y, rad)
2016-09-12 15:46:43 +02:00
Owen McAteer
02d0466496
espruino/Espruino#887 - Added drawCircle function to graphics library
2016-07-28 09:47:32 +02:00
Gordon Williams
c7dd07e780
Fix ESP8266 build ( fix #826 ) and move vectorFonts array out of RAM too
2016-03-30 16:37:32 +01:00
Gordon Williams
5827759200
finish merging MaBecker's changes without usign ESP8266 defines
2016-03-29 09:43:56 +01:00
MaBecker
69b3ce6038
if ESP8266 read vectorFontPolys[] from flash
2016-03-20 06:07:06 +01:00
Jean-Claude Wippler
b0cb9b7465
clear graphics screen on startup
...
The HY-STM32-3.2" was starting up with garbage on-screen. There may be
a better way to clear it (I think it's a ILI9331, but I don't know
anything about the init sequence).
2015-11-19 23:47:20 +01:00
Gordon Williams
a9d10b0d88
Keep track of modified area in Graphics (so modules with can be speeded up
2015-08-27 11:10:42 +01:00
Gordon Williams
7c4b317dea
Fix filled column when fillpoly is off the end of the screen
2014-11-14 14:51:11 +00:00
Gordon Williams
33f430928b
remove vector font on devices that are short of flash
2014-06-24 15:30:02 +01:00
Gordon Williams
1aee068bb6
Converted parse errors to throw exceptions
2014-06-20 10:27:08 +01:00
Gordon Williams
7731c57665
Added Graphics.setRotation ( fix #321 )
...
Added Graphics.drawImage (fix #198 )
2014-04-11 13:05:14 +01:00
Gordon Williams
e88141c76d
Callback graphics now works even without a fillRect implementation ( fix #295 )
2014-04-07 13:11:34 +01:00
Gordon Williams
7f28e328a4
Try and enlarge fillRects caused by polygons
2014-03-19 10:09:43 +00:00
Gordon Williams
e583a52e5c
reduce vector font quality, and save a bunch of space on font offsets
2014-03-19 09:40:47 +00:00
Gordon Williams
a42f268d40
Used non-bold vector font, improve alignment, and make curves lower quality
2014-03-18 19:03:21 +00:00
Gordon Williams
b5182fc841
Added Graphics.setFontCustom for custom fonts
2014-03-18 16:32:26 +00:00