public static Cell CreateSandCell(ref Random random) { var color = ColorPlus.LerpInLch(SandStartColor, SandEndColor, random.NextFloat()); return(new Cell { type = CellType.Sand, color = color, }); }
public static Cell CreateWaterCell(ref Random random) { var color = ColorPlus.LerpInLch(WaterStartColor, WaterEndColor, random.NextFloat()); return(new Cell { type = CellType.Water, color = color, }); }