public LayerSettings() { PointSymbolType = new DbPointSymbolType {PointSymbolTypeAsInt = Random.Next(8)}; Color curColor; while (true) { curColor = ColorExtensions.GetRandomNamedColor(); if (LumaChromaColor.FromColor(curColor).Y >= 0.5f) break; } LineOrSymbolDbColor = new DbColor(curColor); AreaDbColor = new DbColor(Colors.Transparent); }
public SedimentTypeNode() { SymbolColor = new DbColor(ColorExtensions.GetRandomNamedColor()); PointSymbolType = new DbPointSymbolType { PointSymbolTypeAsInt = Random.Next(8) }; }