NamedColors
Returns a list of all named colours known by the system.
Syntax
-
NamedColors()
Description
NamedColors()
returns a list of all named colours known by the system. Each element in the list is a structure of type NamedColor
. This structure has two members: name
and color
. name
is a string and contains the name of the colour. color
is the actual colour object.
Examples
#NamedColors()
147
filter(NamedColors(), (c ↦ contains(c.name, "blue")))
(name: aliceblue, color: rgba(0.941, 0.973, 1.000, 1.000)) (name: blue, color: rgba(0.000, 0.000, 1.000, 1.000)) (name: blueviolet, color: rgba(0.541, 0.169, 0.886, 1.000)) (name: cadetblue, color: rgba(0.373, 0.620, 0.627, 1.000)) (name: cornflowerblue, color: rgba(0.392, 0.584, 0.929, 1.000)) (name: darkblue, color: rgba(0.000, 0.000, 0.545, 1.000)) (name: darkslateblue, color: rgba(0.282, 0.239, 0.545, 1.000)) (name: deepskyblue, color: rgba(0.000, 0.749, 1.000, 1.000)) (name: dodgerblue, color: rgba(0.118, 0.565, 1.000, 1.000)) (name: lightblue, color: rgba(0.678, 0.847, 0.902, 1.000)) (name: lightskyblue, color: rgba(0.529, 0.808, 0.980, 1.000)) (name: lightsteelblue, color: rgba(0.690, 0.769, 0.871, 1.000)) (name: mediumblue, color: rgba(0.000, 0.000, 0.804, 1.000)) (name: mediumslateblue, color: rgba(0.482, 0.408, 0.933, 1.000)) (name: midnightblue, color: rgba(0.098, 0.098, 0.439, 1.000)) (name: powderblue, color: rgba(0.690, 0.878, 0.902, 1.000)) (name: royalblue, color: rgba(0.255, 0.412, 0.882, 1.000)) (name: skyblue, color: rgba(0.529, 0.808, 0.922, 1.000)) (name: slateblue, color: rgba(0.416, 0.353, 0.804, 1.000)) (name: steelblue, color: rgba(0.275, 0.510, 0.706, 1.000))