Transition fade added for foreground items.

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
2023-07-11 15:33:50 +00:00
parent c7f09d9513
commit 5a0e4d0d01
5 changed files with 26 additions and 10 deletions
+4 -4
View File
@@ -178,10 +178,10 @@ namespace olc::utils::geom2d
// Get a line from an indexed side, starting top, going clockwise
inline line<T> side(const size_t i) const
{
if (i & 0b11 == 0) return top();
if (i & 0b11 == 1) return right();
if (i & 0b11 == 2) return bottom();
if (i & 0b11 == 3) return left();
if (i & (0b11 == 0)) return top();
if (i & (0b11 == 1)) return right();
if (i & (0b11 == 2)) return bottom();
if (i & (0b11 == 3)) return left();
}
// Get area of rectangle