- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
var colorInfoList = new List<ColorInfo>()
{
new ColorInfo("#000000", " black", " Черный"),
new ColorInfo("#000080"," navy"," Темно-синий"),
new ColorInfo("#00008B"," darkblue"," Темно-голубой"),
new ColorInfo("#0000CD"," mediumblue"," Умеренно-голубой"),
new ColorInfo("#0000FF"," blue ","Голубой"),
new ColorInfo("#006400"," darkgreen"," Темно-зеленый"),
new ColorInfo("#008000"," green"," Зеленый"),
new ColorInfo("#008080"," teal"," Чайный"),
new ColorInfo("#008B8B"," darkcyan"," Темный циан"),
new ColorInfo("#00BFFF"," deepskyblue"," Темный небесно-синий"),
new ColorInfo("#00CED1","darkturquoise ","Темно-бирюзовый"),
new ColorInfo("#00FA9A"," mediumspringgreen"," Умеренный синевато-серый"),
new ColorInfo("#00FF00"," lime"," Известковый"),
new ColorInfo("#00FFFF"," aqua"," Синий"),
new ColorInfo("#2E8B57"," seagreen"," Морской волны"),
new ColorInfo("#32CD32"," limegreen"," Зеленовато-известковый"),
new ColorInfo("#4B0082"," indigo"," Индиго"),
new ColorInfo("#696969"," dimgray"," Тускло-серый"),
new ColorInfo("#7CFC00"," lawngreen"," Зеленой травы"),
new ColorInfo("#7FFFD4"," aquamarine"," Аквамарин"),
new ColorInfo("#800000"," maroon"," Оранжево-розовый"),
new ColorInfo("#808080"," gray"," Серый"),
new ColorInfo("#8B0000"," darkred"," Темно-красный"),
new ColorInfo("#9ACD32"," yellowgreen"," Желто-зеленый"),
new ColorInfo("#A52A2A"," brown"," Коричневый")
};
public ColorInfo ColorCheck(List<ColorInfo> list, string colorHex)
{
for (int i = 0; i < list.Count-1; i++)
{
if (String.Compare(list[i].HexInfo, colorHex, StringComparison.Ordinal) <= 0 && String.Compare(list[i + 1].HexInfo, colorHex, StringComparison.Ordinal)>=0)
return list[i+1];
}
return new ColorInfo();
}