Commit Graph

275 Commits

Author SHA1 Message Date
Hugo Saint-Vignes
e27c668c40 [apps,escher,kandinsky,poincare,python] Replace every "grey" with "gray"
Change-Id: I60a232849dce90f70e6977b6024d6e9b1ce1b731
2020-11-04 15:07:20 +01:00
Gabriel Ozouf
0a493d1f34 [kandinsky/color] Update comment on blend method
Change-Id: I5fb68608657d2f604c8cb7c9294382ed4a8603ff
2020-08-25 15:51:58 +02:00
Gabriel Ozouf
e33543aacb [kandinsky/color] Add tests on color blending
Change-Id: If1792bd9ec44052238632d28b806f5582b190fe9
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
7f486d790f [apps/code] Get current script variables and functions 2020-06-04 14:50:03 +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
Léa Saviot
e7988b9fa2 [apps/round_cursor_view] Add comment about flaw in algorithm 2020-05-15 02:52:54 -07:00
Romain Goyet
950862f8d0 Use std::min and std::max 2020-04-14 09:31:02 -04:00
Joachim LF
77af9ab92b I18NWarn 2020-04-06 18:29:48 +02:00
Romain Goyet
84f6b179de [build] rule_for now takes both "local" and "global" parameters
Previous the build would fail on macOS if you had an epsilon.elf file in
at the root of the project. Indeed, the %.elf -> %.bin rule would get
triggered, but this rule should only operate on generated (intermediate)
elf file.
2020-04-06 10:12:54 +02: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
7964a2ae6a [poincare/unit][kandinsky/font] Use Greek capital letter omega as Ohm unit symbol 2020-02-12 15:13:23 +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
Émilie Feral
053fb935e3 [apps] Change color of LED in power on self test: blue is too easily
confused with white
2019-12-20 14:04:56 +01:00
Émilie Feral
059c596a80 Makefiles: avoid building all sources for each target; introduce more
modularity
2019-08-08 17:22:01 +02:00
Léa Saviot
a450ce3855 Merge branch 'master' into f7 2019-08-06 17:40:14 +02:00
Ruben Dashyan
07474caf6c [kandinsky/coordinate] Define KDCoordinate limits 2019-07-30 14:15:08 +02: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
Romain Goyet
c7bde32d65 [kandinsky] Fix the 0 glyph in the large font 2019-06-26 17:34:19 +02:00
Léa Saviot
2ae4b63951 Revert "[kandinsky/fonts/LargeFont.ttf] Change the glyphs of 0 and 3 characters"
This reverts commit cd4260494a.
2019-06-26 16:45:33 +02:00
Ruben Dashyan
cd4260494a [kandinsky/fonts/LargeFont.ttf] Change the glyphs of 0 and 3 characters 2019-06-21 14:30:58 -04:00
Léa Saviot
22d6cfedda Merge branch 'version-11' into f7 2019-06-06 10:10:50 +02:00
Romain Goyet
d67cfb0852 [kandinsky] Misc font updates
Small font:
 * Percent (25) blurry
 * Backslash (5C) not properly antialiased
 * Underscore (5F) blurry
 * Degree symbol (B0) not perfectly round
 * AE (C6) too wide
 * ae (E6) too wide
 * Round accent (30A) not perfectly round
 * Approx-equal (2248) blurry

Large font:
 * Degree symbol (B0) not perfectly round
 * AE (C6) wrong
 * ae (E6) too wide
 * Uppercase delta (394) blurry
 * Replacement character (FFFD) blurry
2019-06-06 10:00:32 +02:00
Romain Goyet
695f05dc4a [kandinsky] Add a debug line to help diagnose wrong glyph sizes 2019-06-06 10:00:32 +02:00
Romain Goyet
01eeec5f08 [kandinsky] Fix the rasterizer with old libpng 2019-06-06 10:00:32 +02:00
Romain Goyet
2d22617985 [kandinsky] Use TTF fonts 2019-06-06 10:00:32 +02:00
Romain Goyet
eee32520bd [kandinsky] Enforce proper size for the small font 2019-06-06 10:00:32 +02:00
Romain Goyet
dc4ddc580a [kandinsky] Use SmallFont.otf and LargeFont.otf
It makes the Makefile shorter
2019-06-06 10:00:32 +02:00
Romain Goyet
9de6019fa4 [kandinsky] Auto-detect libpng in the rasterizer 2019-06-06 10:00:32 +02:00
Romain Goyet
6061c9f3ff [kandinsky] The rasterizer can check the size of the emitted glyphs 2019-06-06 10:00:32 +02:00
Romain Goyet
0cd5032a3a [kandinsky] Add safeguards in the rasterizer 2019-06-06 10:00:32 +02:00
Ruben Dashyan
77df361b3f [kandinsky/font] Fix for gcc 2019-06-06 10:00:32 +02:00
Romain Goyet
23e1e39ae7 [kandinsky] Misc font updates
Small font:
 * Percent (25) blurry
 * Backslash (5C) not properly antialiased
 * Underscore (5F) blurry
 * Degree symbol (B0) not perfectly round
 * AE (C6) too wide
 * ae (E6) too wide
 * Round accent (30A) not perfectly round
 * Approx-equal (2248) blurry

Large font:
 * Degree symbol (B0) not perfectly round
 * AE (C6) wrong
 * ae (E6) too wide
 * Uppercase delta (394) blurry
 * Replacement character (FFFD) blurry
2019-06-03 10:30:29 +02:00
Léa Saviot
859064e9fb [apps/POSTandHWtest] LCD test displaying characters 2019-05-28 16:50:58 +02:00
Romain Goyet
4ae24bcd35 [kandinsky] Add a debug line to help diagnose wrong glyph sizes 2019-05-28 16:05:10 +02:00
Romain Goyet
9a23d12b2b [kandinsky] Fix the rasterizer with old libpng 2019-05-28 16:05:10 +02:00
Romain Goyet
199ef93d40 [kandinsky] Use TTF fonts 2019-05-28 16:05:10 +02:00
Romain Goyet
dbfec9f08b [kandinsky] Enforce proper size for the small font 2019-05-28 16:05:10 +02:00
Romain Goyet
1eddc2d2e4 [kandinsky] Use SmallFont.otf and LargeFont.otf
It makes the Makefile shorter
2019-05-28 16:05:10 +02:00
Romain Goyet
f9634041c0 [kandinsky] Auto-detect libpng in the rasterizer 2019-05-28 16:05:10 +02:00
Romain Goyet
a0ddc9df72 [kandinsky] The rasterizer can check the size of the emitted glyphs 2019-05-28 16:05:10 +02:00
Romain Goyet
c94a5deae3 [kandinsky] Add safeguards in the rasterizer 2019-05-28 16:05:10 +02:00
Ruben Dashyan
19529db5d5 [kandinsky/font] Fix for gcc 2019-05-27 15:57:16 +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
ca6ed6ab3b [kandinsky] Fonts: improve glyph % 2019-05-03 15:54:20 +02:00