Closed samuelchassot closed 9 months ago
Closes #1356
Looks good 👍 ! Just minor details :) There is also a missing case for
CellSwap
inAntiAliasing#doNormalize
:case swp @ CellSwap(cell1, cell2) => val (ctxCell1, normCell1) = normalizeForTarget(cell1) val (ctxCell2, normCell2) = normalizeForTarget(cell2) (ctxCell1 compose ctxCell2, CellSwap(normCell1, normCell2).copiedFrom(swp))
Whoops, I added it!
@mario-bucev I applied the fixes according to your comments!
Awesome!
Add a new
Cell
feature with aswap
to support more mutability, notably swapping 2 variables.This adds a new
Cell
class in the library, and aswap
function exchanging their values:These can be used as follows: