fix: Change WledClient to send RGB color order as default
This commit is contained in:
parent
8b35c5f58c
commit
768b3b17b5
@ -64,8 +64,8 @@ void WledClient::sendImage(const QImage &image)
|
||||
|
||||
QRgb pixel = rgbImage.pixel(x, y);
|
||||
// Swap R and G for GRB order
|
||||
datagram.append(qGreen(pixel));
|
||||
datagram.append(qRed(pixel));
|
||||
datagram.append(qGreen(pixel));
|
||||
datagram.append(qBlue(pixel));
|
||||
}
|
||||
|
||||
@ -107,8 +107,8 @@ void WledClient::setLedsColor(const QVector<QColor> &colors, int timeout)
|
||||
for (int j = 0; j < currentLedsInPacket; ++j) {
|
||||
const QColor &color = colors.at(i + j);
|
||||
// Swap R and G for GRB order
|
||||
datagram.append(color.green());
|
||||
datagram.append(color.red());
|
||||
datagram.append(color.green());
|
||||
datagram.append(color.blue());
|
||||
}
|
||||
|
||||
@ -152,8 +152,8 @@ void WledClient::flashLeds(int startIndex, int count, QColor color)
|
||||
|
||||
for (int j = 0; j < currentLedsInPacket; ++j) {
|
||||
// Swap R and G for GRB order
|
||||
datagram.append(color.green());
|
||||
datagram.append(color.red());
|
||||
datagram.append(color.green());
|
||||
datagram.append(color.blue());
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user