예제 #1
0
    public static Cell CreateSandCell(ref Random random)
    {
        var color = ColorPlus.LerpInLch(SandStartColor, SandEndColor, random.NextFloat());

        return(new Cell
        {
            type = CellType.Sand,
            color = color,
        });
    }
예제 #2
0
    public static Cell CreateWaterCell(ref Random random)
    {
        var color = ColorPlus.LerpInLch(WaterStartColor, WaterEndColor, random.NextFloat());

        return(new Cell
        {
            type = CellType.Water,
            color = color,
        });
    }