Esempio n. 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,
        });
    }
Esempio n. 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,
        });
    }