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: PixelBuffer.h
- Revision:
- 29:a362df191524
- Parent:
- 28:b452e097da53
- Child:
- 30:59b70f91b471
--- a/PixelBuffer.h Wed Sep 07 21:07:17 2016 +0000 +++ b/PixelBuffer.h Wed Sep 07 22:21:27 2016 +0000 @@ -55,8 +55,8 @@ void setPixels(RGBColor *color, int len) { setPixels(0, color, len); } void setPixels(HSVColor *color, int len) { setPixels(0, color, len); } - void fillPixels(int index, const RGBColor color, int len = MAX_PIXELS); - void fillPixels(int index, const HSVColor color, int len = MAX_PIXELS); + void fillPixels(int index, const RGBColor color, int len); + void fillPixels(int index, const HSVColor color, int len); void fillPixels(int index, const int color, int len) { fillPixels(index, (RGBColor)color, len); } void fillPixels(const RGBColor color, int len = MAX_PIXELS) { fillPixels(0, color, len); } void fillPixels(const HSVColor color, int len = MAX_PIXELS) { fillPixels(0, color, len); } @@ -131,12 +131,12 @@ void setPixels(HSVColor *color, int len) { setPixels(0, color, len); } void setPixels(RGBColor *color, int len) { setPixels(0, color, len); } - void fillPixels(const HSVColor color, int index, int len); - void fillPixels(const RGBColor color, int index, int len); - void fillPixels(const int color, int index, int len) { fillPixels((RGBColor)color, index, len); } - void fillPixels(const HSVColor color, int len = MAX_PIXELS) { fillPixels(color, 0, len); } - void fillPixels(const RGBColor color, int len = MAX_PIXELS) { fillPixels(color, 0, len); } - void fillPixels(const int color, int len = MAX_PIXELS) { fillPixels((RGBColor)color, 0, len); } + void fillPixels(int index, const HSVColor color, int len); + void fillPixels(int index, const RGBColor color, int len); + void fillPixels(int index, const int color, int len) { fillPixels(index, (RGBColor)color, len); } + void fillPixels(const HSVColor color, int len = MAX_PIXELS) { fillPixels(0, color, len); } + void fillPixels(const RGBColor color, int len = MAX_PIXELS) { fillPixels(0, color, len); } + void fillPixels(const int color, int len = MAX_PIXELS) { fillPixels(0, (RGBColor)color, len); } void clear(const HSVColor color) { fillPixels(color); } void clear(const RGBColor color) { fillPixels(color); }