74 Commits

Author SHA1 Message Date
Gordon Williams
10dce25c8d Making pebble fonts defineable with ESPR_PBF_FONTS, add to ChangeLog 2023-06-06 16:49:23 +01:00
Gordon Williams
566344f4e8 Added PBF font file loading 2023-05-26 12:14:13 +01:00
Gordon Williams
7db329b481 Graphics: Added .floodFill method to allow flood fill 2023-05-11 12:14:27 +01:00
Gordon Williams
f772bd5106 Graphics: g.setClipRect now uses rotated coordinates
Graphics: g.draw/fillCircle now works with rotated coordinates
            Bangle.js2: Touch/drag coordinates now obey g.setRotation
2022-05-03 13:14:25 +01:00
Gordon Williams
9c5e5f2355 Graphics: You can now do g.fillRect({x,y,x2,y2,r}) for rounded rectangles 2022-02-11 11:01:27 +00:00
Gordon Williams
4a7d30f4be Bangle.js: Add 'graphicsInternal' to make Graphics independent of JS vars. Terminal is now useful earlier, and can display softdevice errors 2022-01-31 16:35:38 +00:00
Gordon Williams
bba418a9cb Set default colors using RGB888 which is easier to read. Bangle 2 bg2 is now light blue 2021-11-02 15:17:41 +00:00
Gordon Williams
2470b27ccf More dickens merges 2021-10-18 21:09:08 +01:00
Gordon Williams
cd1f1da465 Bangle.js 2: Increase reported bit depth from 3->16 and perform bayer dithering when rendering
Makes icons/old apps way more usable (plus provides an easy way to get >3bpp)
2021-09-28 16:26:29 +01:00
Gordon Williams
ad961bdf79 Allow setFont("FontName:1x2") for scaling in 2 directions (fix #2044) 2021-09-20 11:51:23 +01:00
Gordon Williams
561becda6b Set Graphics type before graphicsStructInit, or graphicsStructResetState can't decide whether to use themes or not. 2021-08-05 16:10:56 +01:00
Gordon Williams
2329b347a3 Graphics: Add dark boolean to themes to allow apps to update depending on bg color 2021-06-24 13:36:56 +01:00
Gordon Williams
b0249aa436 Graphics: Allow 'scroll' method to only scroll inside clipRect 2021-05-27 13:26:35 +01:00
Gordon Williams
1f3f580c5f Bangle.js: Add support for global colour themes which affect g.clear/g.reset 2021-05-26 11:02:07 +01:00
Gordon Williams
b5894621c0 Misc merge of Dickens changes to bring branches more in line 2021-05-13 12:26:41 +01:00
Gordon Williams
61af3b9135 Graphics: Improve fillPolyAA for horizontalish lines, remove antialiased vector fonts (as won't work well on platforms without readback) 2021-02-09 13:09:21 +00:00
Gordon Williams
1049974e35 merge in work on new device 2021-01-19 16:13:32 +00:00
Gordon Williams
f6ca3b7fc4 Merge branch 'master' into SMAQ3 2020-10-19 10:43:57 +01:00
Gordon Williams
55fe4f29ab Graphics: Fix for out of bounds ArrayBuffer scroll issue (fix #1746, #1747Graphics: Fix for out of bounds ArrayBuffer scroll issue (fix #1946, #1947)) 2020-10-13 11:21:29 +01:00
Gordon Williams
486afea7ab Removed custom fonts for SVAE_ON_FLASH devices
Fixed BBC micro:bit show() regression from 2v07
2020-10-01 09:48:51 +01:00
Gordon Williams
58dfa6f425 Make graphicsBlendColor use integers 2020-09-30 10:36:05 +01:00
Gordon Williams
1be80451a3 Add support for > 1bpp custom bitmap fonts 2020-09-30 10:28:02 +01:00
Gordon Williams
16fe29ca3f First stab at antialiased lines - using slow double precision. Gamma really matters for making the antialiasing look ok 2020-09-29 15:58:09 +01:00
Gordon Williams
9cbbd301f6 Merge branch 'master' into SMAQ3 2020-08-06 10:59:45 +01:00
Gordon Williams
aae60cb21f Allow SAVE_ON_FLASH build for Pixl.js 2020-08-05 10:18:46 +01:00
Gordon Williams
9643fd5ad1 Merge branch 'master' into SMAQ3 2020-07-23 10:24:07 +01:00
MaBecker
583c132e22 add lcd spi unbuffered driver
required make options:
USE_LCD_SPI_UNBUF=1
DEFINES="-DSPISENDMANY_BUFFER_SIZE=128"
2020-07-20 11:45:16 +02:00
Gordon Williams
b9122196be SMAQ3 runs with LCD, beep,buzz,button - no working accel/compass/etc yet 2020-07-03 13:51:51 +01:00
Gordon Williams
d129782d19 Improve Graphics.drawImage speed and simplify code by allowing fast path for non-rotated graphics 2020-05-29 13:05:42 +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
98bb9029a7 refactor to share code and add drawImages - drawImages works, drawImage now broken 2020-05-07 16:33:10 +01:00
Gordon Williams
b50ad45753 Graphics.createArrayBuffer now honors msb:true if bpp>8
Graphics.asImage: handle >8bpp correctly (fix #1797)
            Graphics.asImage: Allow 'string' output type, reference Graphics buffer if possible
2020-05-07 11:20:23 +01:00
Gordon Williams
c104311726 Fix 1-byte overflow when using UDP (#1799)
Remove 1-byte padding in Graphics lib
2020-04-27 13:44:05 +01: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
04eafbfedd Add Graphics.createArrayBuffer(... {interleavex:true}) to allow faster support for P3 LED panels 2018-12-20 17:03:59 +00:00
Gordon Williams
fb8c1d8777 squash warning 2018-05-24 14:00:59 +01:00
Gordon Williams
a457bd0c4a Fix font rendering issue caused by signed bit field handling by GCC on non-x86 platforms (fix #1436) 2018-05-22 08:29:17 +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