protected PanelEffect(IPackedColorPanel targeting) { target = targeting; validCells = new GreasedRegion(targeting.gridWidth(), targeting.gridHeight()).allOn(); } protected PanelEffect(IPackedColorPanel targeting, float duration)
protected PanelEffect(IPackedColorPanel targeting, float duration) { target = targeting; setDuration(duration); validCells = new GreasedRegion(targeting.gridWidth(), targeting.gridHeight()).allOn(); } protected PanelEffect(IPackedColorPanel targeting, float duration, GreasedRegion valid)
GreasedRegion sampled = new GreasedRegion(width, height).allOn().removeEdges(); sampled.remake(sampled.copy().randomScatter(rng, 6).or(sampled.randomScatter(rng,8)));