Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: ColorLib.h
- Revision:
- 16:01e073c662d7
- Parent:
- 15:cd78625d83b6
- Child:
- 27:bc79f444883b
diff -r cd78625d83b6 -r 01e073c662d7 ColorLib.h
--- a/ColorLib.h Fri Aug 19 18:27:33 2016 +0000
+++ b/ColorLib.h Sat Aug 20 19:10:59 2016 +0000
@@ -231,14 +231,16 @@
*/
HSVColor(int h, int s, int v)
{
- hue = nomalize_hue(h);
+// hue = nomalize_hue(h);
+ hue = h;
sat = (s < 0) ? 0 : ((HSV_MAX_SAT < s) ? HSV_MAX_SAT : s);
val = (v < 0) ? 0 : ((HSV_MAX_VAL < v) ? HSV_MAX_VAL : v);
}
HSVColor(int16_t h, uint8_t s, uint8_t v)
{
- hue = nomalize_hue(h);
+// hue = nomalize_hue(h);
+ hue = h;
sat = s;
val = v;
}