Gabriel Ozouf
34ebf1e6e0
[python/kandinsky] Remove additional interrupt
...
Additional checks for interruptions were making the kandinsky module
slower.
/!\ Some scripts are now very difficult to interrupt
Change-Id: I4c18273d8895deaac68084411a52556c8459d52b
2020-08-31 15:32:02 +02:00
Émilie Feral
273d10dc26
[python] Change names: ColorParse::ParseColor --> Color::Parse
2020-06-04 14:50:08 +02:00
Émilie Feral
9b419acf40
[python] kandinsky port: rename TupleForRGB to TupleForKDColor
2020-04-30 14:12:32 +02:00
Émilie Feral
e7df25d558
[python] Kandinsky module: color accepts "#FF0000", "red" kinds of
...
arguments
2020-04-30 14:12:32 +02:00
Joachim LF
e76abcf67e
[Python] universal colors
2020-04-30 14:12:32 +02:00
Léa Saviot
8fe41a8673
[python/modkandinsky] fillRect accepts negative width and height
2020-02-21 16:04:05 +01:00
Ruben Dashyan
8d3f86c77f
[kandinsky/context] getPixel only if in the clipping rect
...
Fixes the redrawing of RoundCursorView when its frame overlaps the
clipping rect.
2020-02-12 15:13:24 +01:00
Émilie Feral
070d362f15
[python] Improve comment
2019-12-12 14:16:13 +01:00
Émilie Feral
49aa58446b
[python] modkandinsky: fill_rect and draw_string calls might take some
...
time. As "micropython_port_vm_hook_loop" is not called while we are
executing module code, we add an extra check for user interruption in
module functions.
2019-12-04 11:27:32 +01:00
Romain Goyet
42f72eee77
[python/kandinsky] draw_string takes two optional colors (text/bg)
2019-04-26 17:44:27 +02:00
Romain Goyet
ec50e75a3a
[python/kandinsky] Bubble-up input errors before switching to draw mode
2019-04-26 17:44:27 +02:00
Romain Goyet
926b96cafb
[python/kandinsky] Expose the fill_rect method
...
Which allows for *much* faster graphics
2019-04-26 17:44:27 +02:00
Romain Goyet
bb89ae9211
[python/kandinsky] Color can now be passed as a tuple
...
The values are expected to be integers between 0 and 255
2019-04-26 17:44:27 +02:00
Romain Goyet
d6a2238be6
[python] Clean the Kandinsky's module code
2018-11-15 17:12:01 +01:00