Gabriel Ozouf
0a493d1f34
[kandinsky/color] Update comment on blend method
...
Change-Id: I5fb68608657d2f604c8cb7c9294382ed4a8603ff
2020-08-25 15:51:58 +02:00
Gabriel Ozouf
078bba2fb9
[kandinsky/color] Fix blend method
...
When computing the barycenter between two colors, the some of the two
factors a and (1-a) was equal to 255/256 instead of 1.
Change-Id: Ia9a779d43470ef42d9430ad730e842da0f007140
2020-08-25 15:51:58 +02:00
Gabriel Ozouf
38e15da5d0
[kandinsky/color] Blend identical colors
...
KDColor::blend used to produce different colors when blending two
identical colors (ex : use draw_string in Python to print white text on
a white background).
blend now escapes early when its two color arguments are identical.
Change-Id: I01dc5a0d5e4e6a20e09fee0f346dafc313dae97b
2020-08-25 15:51:58 +02:00
Léa Saviot
a56a73b0ba
[apps/calculation] Fix calculation height computation
...
It was done in two places before, which created inconsistencies
2020-05-28 04:44:27 -07:00
Romain Goyet
950862f8d0
Use std::min and std::max
2020-04-14 09:31:02 -04: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
Ruben Dashyan
7b8f7007c4
[kandinsky/context] Inline in header file
2020-02-12 15:13:24 +01:00
Ruben Dashyan
7cfdadd394
[kandinsky/font] Define IndexForReplacementCharacterCodePoint
2020-02-12 15:13:23 +01:00
Ruben Dashyan
dd92450115
[kandinsky/font] Included header is in C language
2020-02-12 15:13:23 +01:00
Ruben Dashyan
009faa1e37
[kandinsky/font] Factor indexForCodePoint default return value
2020-02-12 15:13:23 +01:00
Léa Saviot
606e132747
[apps/bench] Change LCD Data pattern (tiling red/blue/green)
2019-07-12 17:50:38 +02:00
Léa Saviot
7b99f78352
[post_and_hardware_tests] Bad pixels limit of 2, not 0
2019-07-05 12:25:45 +02:00
Léa Saviot
859064e9fb
[apps/POSTandHWtest] LCD test displaying characters
2019-05-28 16:50:58 +02:00
Émilie Feral
8b926612a2
Revert "[ion] Namespace Ion::UTF8Helper and Ion::UTF8Decoder"
...
This reverts commit 23da0d3f2c .
2019-05-03 16:29:28 +02:00
Émilie Feral
23da0d3f2c
[ion] Namespace Ion::UTF8Helper and Ion::UTF8Decoder
2019-04-29 18:01:30 +02:00
Léa Saviot
f638809ca5
[kandinsky] Fix font test
2019-04-12 15:16:52 +02:00
Léa Saviot
693d7e0976
[unicode] Clean typography (accents, non present glyphs...)
2019-04-12 15:16:52 +02:00
Léa Saviot
b1d18416e8
[escher] Fix buffer choice in TextField::glyphFrameAtPosition
2019-04-12 15:16:52 +02:00
Léa Saviot
646931b3b5
[text_area] Fix Text::Position use with unicode
...
A glyph offset is not equivalent to a code point offset since a code
point can be several glyphs long.
2019-04-12 15:16:51 +02:00
Léa Saviot
43031928c3
Remove max/min inline from KDCoordinate header
2019-04-12 15:16:51 +02:00
Léa Saviot
b6eb663f53
[ion/kandinsky] Move unicode to ion
2019-04-12 15:16:51 +02:00
Léa Saviot
5142c071df
[escher] Fix text inputs so they use UTF8
2019-04-12 15:16:51 +02:00
Léa Saviot
f90e709201
[poincare/utf8_decoder] nextCodePointPointer is now stringPosition
2019-04-12 15:16:51 +02:00
Léa Saviot
8d759c0b3b
[unicode] Use the UTF8Decoder to scan const char *
2019-04-12 15:16:51 +02:00
Léa Saviot
63d7155376
Remove Ion::Charset
2019-04-12 15:16:50 +02:00
Léa Saviot
8d584cf37b
[kandinsly] Rename utf8decoder as utf8_decoder
2019-04-12 15:16:50 +02:00
Léa Saviot
cf79b26ceb
[kandinsky] UTF8Decoder::CodePointToChars
2019-04-12 15:16:50 +02:00
Léa Saviot
02a5d6cd23
[kandinsky] Add KDCodePoint prefix static code points
2019-04-12 15:16:50 +02:00
Léa Saviot
d5df3b74ea
Rename Codepoint Code point
2019-04-12 15:16:50 +02:00
Léa Saviot
f184f1ff36
[kandinsky] Coding style
2019-04-12 15:16:50 +02:00
Léa Saviot
3156f92baf
[kandinsky/font] Fix rebase on master
2019-04-12 15:16:50 +02:00
Romain Goyet
8106ba6371
[kandinsky] Assume UTF-8 encoding for strings
2019-04-12 15:16:50 +02:00
Léa Saviot
ed19d19070
Merge branch 'master' into python_turtle
2018-12-17 15:49:46 +01:00
Léa Saviot
e836593ff9
[kandinsky] In KDContext::getPixels: beware of rects crossing the screen
...
This fixes a display glitch on the device, when using Python's turtle
module and doing the command forward(200).
2018-12-07 11:30:32 +01:00
Léa Saviot
eda07922ab
[kandinsky/font] fetchGlyphForChar handles chars that do not have glyphs
2018-11-23 12:04:10 +01:00
Romain Goyet
a9091c933b
[python/turtle] Use a Turtle class
2018-11-16 15:31:31 +01:00
Jean-Baptiste Boric
464c1a5c95
[python] Initial turtle module
2018-10-27 14:24:36 +02:00
Romain Goyet
f4f567814e
[escher] Compress images
2018-10-12 09:36:44 +02:00
Romain Goyet
dfb30e5799
[kandinsky] Remove some warnings
2018-10-11 16:44:02 +02:00
Romain Goyet
1dd1e6ca8d
[kandinsky] Handle drawing clipped text
...
Text can be drawn in a rect that cannot contain the whole character.
Luckily, we have fillRectWithPixels handy to handle such cases.
2018-10-11 16:44:02 +02:00
Romain Goyet
c183f0147e
[kandinsky] Get rid of KDText
2018-10-11 16:44:02 +02:00
Romain Goyet
f8beae3b86
[kandinsky] Move to KDFont
2018-10-11 16:44:02 +02:00
Romain Goyet
29882768bd
[kandinsky] Use LZ4 to compress fonts
...
This is a work-in-progress
2018-10-11 16:44:02 +02:00
Romain Goyet
83662ebf70
[kandinsky] Remove warning, add missing file
2018-10-11 16:44:02 +02:00
Romain Goyet
da4cc4356f
[kandinsky] Introduce a KDFont class
2018-10-11 16:44:02 +02:00
Léa Saviot
34d6028882
[kandinsky] Add method KDRect::differencedWith(const KDRect & other)
...
Change-Id: Ib6c61bbd3bffc90bc3e704a7133eae0731500864
2018-04-25 13:58:43 +02:00
Léa Saviot
fc8cd6c06e
[expression_editor/poincare] Move Up in an ExpressionLayout.
...
Change-Id: I75fd91233729afd4eb77d8e9d53c102a632643ea
2018-01-15 11:58:01 +01:00
Émilie Feral
887e3d1f54
[kandinksy] Optimize strokeRect implementation
2018-01-04 15:48:06 +01:00
Émilie Feral
57866ce788
[kandinsky] Make charSize methods constexpr
2018-01-04 15:48:06 +01:00
Émilie Feral
c545a23ec6
[kandinsky] Fix draw rect+change name: drawRect->strokeRect
...
Change-Id: I1c59e34b126aa54819e399d095499758b9e73125
2017-12-06 14:49:53 +01:00