[英]is there a way to get the source code of color picker extender in c#?
I need the exact hex codes of all colors in this: https://docs.microsoft.com/en-us/aspnet/web-forms/overview/ajax-control-toolkit/colorpicker/using-the-colorpicker-control-extender-cs我需要所有颜色的确切十六进制代码: https : //docs.microsoft.com/en-us/aspnet/web-forms/overview/ajax-control-toolkit/colorpicker/using-the-colorpicker-control-扩展器-cs
I would go crazy trying to manually pick and note all 216 of them.我会疯狂地尝试手动选择并记录所有 216 个。 Is there a way to get a list of them?
有没有办法得到他们的名单? maybe from the source code of this?
也许来自这个的源代码?
Adapted the linked source code to C# to dump a list of all color codes to the console:将链接的源代码改编为 C# 以将所有颜色代码的列表转储到控制台:
var rgb = new["00", "99", "33", "66", "FF", "CC"];
for (var r = 0; r < rgb.Length; r++)
for (var g = 0; g < rgb.Length; g++)
for (var b = 0; b < rgb.Length; b++)
Console.WriteLine(rgb[r] + rgb[g] + rgb[b]);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.