Gordon Williams
8bdc46ec4f
fix rendering of transparency in image strings
2019-11-13 10:08:33 +00:00
Gordon Williams
e230148625
improve docs making
2019-11-07 16:12:27 +00:00
Gordon Williams
ab335b39f0
Bangle.js add 2 bit option for nice smooth grayscale images
2019-11-04 13:49:02 +00:00
Gordon Williams
e78ba062ca
Fix Bangle.js fillrect when screen is scrolled such that it goes past the end of memory and starts again at the beginning
2019-10-31 15:42:05 +00:00
Gordon Williams
c2e04272b5
Add code for fast data transfer to LCD
2019-10-25 15:19:02 +01:00
Gordon Williams
ef02346814
Add a fast path for non-rotated non-scaled Graphics.drawImage
2019-10-25 09:52:35 +01:00
Gordon Williams
759f41ffa2
add fast path for scaled image blit
2019-10-23 18:10:09 +01: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
41d5593fb7
Can now get a data pointer even from a single JsVar string (it doesn't have to be flat)
...
Add option to specify a palette when drawing images with drawImage
2019-10-23 16:00:10 +01:00
Gordon Williams
85024575f6
If we're using paletted graphics with a 4 bit output then do a palette lookup for setColor.
...
Also avoid doing palette lookup if not rendering to 16 bit Graphics - offscreen rendering would have been killed otherwise.
2019-10-18 15:03:12 +01:00
Gordon Williams
23b824206c
Pixl.js: Removed AES functionality - unfortunately we're running low on space for it
...
Original Espruino Board: Removed Vector font and don't add rotated drawImage to save flash
2019-10-17 16:33:27 +01:00
Gordon Williams
2306783bbf
Banglification
2019-10-09 16:47:46 +01:00
Gordon Williams
846564140e
Fix font y alignment and general positioning of big bitmap fonts
2019-10-03 16:16:58 +01:00
Gordon Williams
346599060e
added clearRect
2019-10-03 12:43:31 +01:00
Gordon Williams
5275fd65ec
fix scrolling
2019-10-03 12:21:36 +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
6a4758160c
Allow rotated image drawing with 1,2,4,8,16,24,32 bpp
2019-10-02 13:57:18 +01:00
Gordon Williams
ad1fb3ea59
Allow drawImage to render images rotated and scaled
2019-10-02 11:32:42 +01:00
Gordon Williams
899f1f07a5
minor hackstrap tweaks
2019-10-01 16:54:28 +01:00
Gordon Williams
d334d0a92a
Reliable LCD on F18
2019-10-01 10:29:45 +01:00
Gordon Williams
2d3170d180
fix save on flash build
2019-09-25 19:34:03 +01:00
Gordon Williams
48135b6dda
Graphics.drawImage can now take a String of data for an image (eg. direct from Storage)
2019-09-25 13:16:37 +01:00
Gordon Williams
e461459e2f
Add 4bpp paletted
2019-09-24 14:28:25 +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
1753fda0e0
Merge branch 'master' into HackStrap
2019-09-16 14:22:45 +01:00
Gordon Williams
91c995b981
fix pixl build
2019-09-12 13:05:10 +01:00
Gordon Williams
0e8fe4ae33
Merge branch 'ID205' into HackStrap
2019-09-04 15:16:28 +01:00
Gordon Williams
c48bd6ffa3
only refresh terminal at idle
2019-09-02 12:51:02 +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
fanoush
c0c1b20541
fix lcdGetPixel_SDL reading wrong pixels
...
Multiply by width was missing in GetPixel, now using same code as in SetPixel.
Current bug causes Graphics.scroll(x, y) to produce very strange patterns, after fix it works as expected.
2019-06-25 14:18:41 +02:00
fanoush
3de6093d89
fix jswrap_graphics_asBMP to take rotation into account and swap width/height appropriately
2019-06-14 17:20:53 +02:00
Gordon Williams
37ceda5212
Fix Graphics.setFontBitmap on builds with no vector font ( fix #1671 )
2019-06-13 11:35:49 +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
a5fca40410
fix micro:bit build
2019-01-31 15:03:18 +00:00
Gordon Williams
38a2958a41
Ensure Graphics.* return the Graphics instance, to allow call chaining ( fix #1580 )
2019-01-21 12:31:17 +00:00
Gordon Williams
f91b713e49
fix issue with Graphics interleavex and fills
2018-12-21 12:59:49 +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
Mark Becker
8bfa213157
fix types lacks a cast
...
warning: comparison of distinct pointer types lacks a cast [enabled by default]
2018-10-25 19:08:14 +02:00
Gordon Williams
3d63b355ea
Fix potential out of bounds Graphics.scroll
2018-10-22 10:48:58 +01:00
Gordon Williams
c2b3007edc
tweak docs so they render correctly in Python's broken markdown implementation
2018-10-18 16:03:58 +01:00
Gordon Williams
03373959f7
Remove new Graphics.createImage/asBML/asURL/dump on Original Espruino Board (not enough space)
2018-09-26 16:50:25 +01:00
Gordon Williams
8ef686d5f4
updat egraphics docs for setCOlor
2018-09-24 10:51:46 +01:00
Gordon Williams
6b147b666f
Remove Graphics.scroll/drawCircle/fillCircle on devices with low flash to allow builds to fit again
...
Remove BluetoothRemoteGATTCharacteristic.writeValue on NRF51 (accidental inclusion - it's not required)
2018-09-20 15:37:29 +01:00
Gordon Williams
47c44cbd46
Add Graphics.asImage to turn a Graphics instance into an Image that can be used with drawImage
...
Add Graphics.createImage to allow creation of a 1 bit image direct from a string
2018-08-14 15:25:47 +01:00
Gordon Williams
cb1fb84521
Added Graphics.drawPoly
2018-08-14 12:26:39 +01:00
Gordon Williams
8d71250e00
Graphics.stringWidth now takes account of newlines
2018-08-02 16:11:45 +01:00