canvi de pc

This commit is contained in:
2025-07-14 22:27:36 +02:00
parent 5cb67b41d1
commit df53c39200
8 changed files with 56 additions and 21 deletions

View File

@@ -111,8 +111,9 @@ struct Color
Uint8 newR = (std::abs(r - target.r) <= step) ? target.r : (r < target.r ? r + step : r - step);
Uint8 newG = (std::abs(g - target.g) <= step) ? target.g : (g < target.g ? g + step : g - step);
Uint8 newB = (std::abs(b - target.b) <= step) ? target.b : (b < target.b ? b + step : b - step);
Uint8 newA = (std::abs(a - target.a) <= step) ? target.a : (a < target.a ? a + step : a - step);
return Color(newR, newG, newB, a);
return Color(newR, newG, newB, newA);
}
};