51 Commits

Author SHA1 Message Date
Gordon Williams
2cdc519433 Don't draw font characters that are off the edge of the screen 2017-06-27 15:53:36 +01:00
Gordon Williams
45ad68433a Increase max graphics size from 1023 to 32767 2017-03-27 12:52:36 +01:00
Gordon Williams
aeebfb1409 Started using jsvObjectRemoveChild to remove some internal object properties that are undefined (frees some variables) 2016-11-07 17:07:47 +00: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
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
69a6c7fe36 improve graphics docs 2016-04-27 10:17:49 +01:00
Gordon Williams
5dd5d901d1 replace NewWithFlags with jsvNewXXX - saves a few bytes by killing repetition 2016-03-04 12:54:18 +00:00
Gordon Williams (u36)
45741a0a45 squashing warnings 2016-02-03 12:27:51 +00:00
Gordon Williams
80ce11135a I love Eclipse global regex replace :)
Use jsvUnLock2/etc to really drop memory usage
2015-09-18 12:25:07 +01:00
Gordon Williams
9a4bf15d84 doc tweak 2015-08-27 11:21:02 +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
482c645daf Remove Graphics.setColorHSV, add E.HSBtoRGB (fix #554) 2015-08-10 17:22:01 +01:00
Gordon Williams
d1139b57f9 graphics doc 2015-06-24 10:33:22 +01:00
Gordon Williams
1181f166a5 improve implementation and actually add docs for colour re-order. Fix #217 2015-04-14 17:01:46 +01:00
Gordon Williams (u36)
072c508ec6 Allowed ArrayBuffer Graphics to store pixels MSB-first 2015-04-13 09:24:55 +01:00
Gordon Williams
933d14a988 refactor comments 2014-09-11 13:38:48 +01:00
Daniel O'Connor
3b7cb1c516 Add HSV color routines. 2014-08-24 16:54:25 +09:30
Daniel O'Connor
a7b3a867c9 Allow the user to specify the color order. 2014-08-24 15:45:42 +09:30
Gordon Williams
6698829bac use iterator for graphics fillpoly 2014-07-17 16:21:24 +01:00
Gordon Williams
c15c55dfe2 updated docs to help tern determine what objects are returned 2014-07-15 17:23:01 +01:00
Gordon Williams
04217233d4 fix warning 2014-07-11 10:45:29 +01: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
03e1bd9875 squashing warnings 2014-06-19 16:25:21 +01:00
Gordon Williams
bfd1144a28 Make Graphics.drawImage draw bottom line of pixels (fix #329) 2014-04-28 16:16:04 +01:00
Gordon Williams
ceabbbf39c Added E.toArrayBuffer for fast string->array conversion
Changed Graphics.drawImage to work on MSB-first images, as this seems to be what most platforms expect
2014-04-11 15:44:10 +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
26254d0fea ArrayBuffer Graphics now supports 2 and 4 bits as well as 1,8,16,24,32 (fix #301) 2014-04-07 13:23:56 +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
7c7f174b76 Fix custom font memory leak 2014-04-04 08:41:18 +01:00
Gordon Williams
fed2e09f89 Support for generate_full and also fields 2014-03-31 12:40:17 +01:00
Gordon Williams
550791528d Add Graphics.getColor/getBgColor for Juergen 2014-03-20 11:11:31 +00:00
Gordon Williams
b5182fc841 Added Graphics.setFontCustom for custom fonts 2014-03-18 16:32:26 +00:00
Gordon Williams
37eed3f06b Move Graphics init and idle functions out of jsinterface.c 2014-03-06 11:56:48 +00:00
Gordon Williams
5cd7c9af7e Add 4x6 font (instead of 8x8) 2014-02-27 17:05:08 +00:00
Gordon Williams
a0c4832455 more compile warnings 2014-02-14 14:56:53 +00:00
Gordon Williams
5b313a511c removing some compile warnings 2014-02-14 13:31:21 +00:00
Gordon Williams
c04cfccc26 Make sure that interruptions are handled better while drawing to graphics
Make sure that stack overflow errors are handled more tidily (and increase limit for warning)
2014-02-13 11:45:14 +00:00
Gordon Williams
7893a9b9a5 Graphics setPixel(x,y,undefined) to use foreground colour (fix #215) 2014-02-12 19:16:06 +00:00
Gordon Williams
83c2f8cd09 Added ability to specify a JS function for Graphics fillRect 2014-02-12 19:02:34 +00:00
Gordon Williams
5a146b18ed Graphics arraybuffer/callback now accepts 16bpp 2014-02-12 18:34:56 +00:00
Gordon Williams
82dfeb89d0 Epic refactor to remove JsParse (fix #17) 2014-02-12 12:44:02 +00:00
Gordon Williams
15d84edc19 converting more prints over 2013-12-09 13:44:18 +00:00
Gordon Williams
5ccaae8b37 Swapping to using printf-based error logging 2013-12-09 13:04:28 +00:00
Gordon Williams
7972026cb8 Fix graphics compile warnings and add stringWidth 2013-12-09 10:39:15 +00:00
Gordon Williams
66c62f7adf code tidy - now use single function 2013-12-02 13:37:28 +00:00
Gordon Williams (u36)
749d0f8de5 docs 2013-10-27 11:42:23 -07:00