canvi de pc
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user