J
Jameson
Hi,
I have a list of known colours, generated using:
Dim colorNames As New System.Collections.Generic.List(Of String)
For Each known As KnownColor In [Enum].GetValues(GetType(KnownColor))
Dim specific As Color = Color.FromKnownColor(known)
If Not specific.IsSystemColor And Not specific.Name = "Transparent" Then
colorNames.Add(known.ToString())
End If
Next
I want to sort these colours according to similarity, ie. all the blues
together, all the reds together, etc. as is done in typical colour picker
lists/combo boxes Anyone know how I should do this? Which attribute should
I sort on?
I have a list of known colours, generated using:
Dim colorNames As New System.Collections.Generic.List(Of String)
For Each known As KnownColor In [Enum].GetValues(GetType(KnownColor))
Dim specific As Color = Color.FromKnownColor(known)
If Not specific.IsSystemColor And Not specific.Name = "Transparent" Then
colorNames.Add(known.ToString())
End If
Next
I want to sort these colours according to similarity, ie. all the blues
together, all the reds together, etc. as is done in typical colour picker
lists/combo boxes Anyone know how I should do this? Which attribute should
I sort on?