Transition fade added for foreground items.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user