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.cpp
- Revision:
- 29:a362df191524
- Parent:
- 28:b452e097da53
- Child:
- 32:64c391617f6c
diff -r b452e097da53 -r a362df191524 PixelBuffer.cpp
--- a/PixelBuffer.cpp Wed Sep 07 21:07:17 2016 +0000
+++ b/PixelBuffer.cpp Wed Sep 07 22:21:27 2016 +0000
@@ -113,7 +113,7 @@
void RGBPixels::fillPixels(int index, const HSVColor color, int len)
{
- fillPixels(RGBColor(color), index, len);
+ fillPixels(index, RGBColor(color), len);
}
// 先頭から指定サイズ分のブロックをバッファの最後までコピーする
@@ -292,7 +292,7 @@
}
// 指定色を指定位置のピクセルから指定サイズ分書き込む
-void HSVPixels::fillPixels(const HSVColor color, int index, int len)
+void HSVPixels::fillPixels(int index, const HSVColor color, int len)
{
if (_pixels && len > 0 && (uint16_t)index < _numPixels)
{
@@ -303,9 +303,9 @@
}
}
-void HSVPixels::fillPixels(const RGBColor color, int index, int len)
+void HSVPixels::fillPixels(int index, const RGBColor color, int len)
{
- fillPixels(HSVColor(color), index, len);
+ fillPixels(index, HSVColor(color), len);
}
// 先頭から指定サイズ分のブロックをバッファの最後までコピーする
@@ -409,7 +409,7 @@
for (int i = (index < 0) ? -index : 0; i < end; ++i)
{
hsv.hue = color.hue + direction * i / len;
- *dest++ = GammaColor(hsv);
+ *dest++ = GammaColor(hsv);
}
}