+
+
+ const uint offset1 = partW + offset;
+ const uint offset2 = 2*partW + 2*offset;
+ switch(paintMode) {
+ case PaintMode_RGB:
+ for (uint i = 0; i < partW; i++) {
+ for (uint j = 0; j < 256; j++) {
+ unscaled.setPixel(i, j, qRgba(255,10,10, CHOP255(gain*paradeVals[i][j].r)));
+ unscaled.setPixel(i+offset1, j, qRgba(10,255,10, CHOP255(gain*paradeVals[i][j].g)));
+ unscaled.setPixel(i+offset2, j, qRgba(10,10,255, CHOP255(gain*paradeVals[i][j].b)));
+ }
+ }
+ break;
+ default:
+ for (uint i = 0; i < partW; i++) {
+ for (uint j = 0; j < 256; j++) {
+ unscaled.setPixel(i, j, qRgba(255,255,255, CHOP255(gain*paradeVals[i][j].r)));
+ unscaled.setPixel(i+offset1, j, qRgba(255,255,255, CHOP255(gain*paradeVals[i][j].g)));
+ unscaled.setPixel(i+offset2, j, qRgba(255,255,255, CHOP255(gain*paradeVals[i][j].b)));
+ }
+ }
+ break;
+ }
+