Lately I have been using the wikipedia X11 color reference a lot when
developing: http://en.wikipedia.org/wiki/X11_color_names
At the same time, I also use shoes manual ("shoes -m") quite a lot,
and I usually start it up while I am developing shoes things. It would
be swell if the manual had a list of named colors, along with a swatch
of the color. So I wrote one:
Shoes.app do
(Shoes::COLORS.keys.map{|sym|sym.to_s}.sort-["black"]).each { |color|
flow(:width => 175){
fill eval(color.to_s)
rect 0, 0, 160, 25
para color.to_s
}
}
end
I tried to make a diff adding this to the manual, but it looked
difficult to run ruby code in manual pages. Though, maybe doing this
in code is a little over-eager since the X11 color chart hasn't
changed in years. Perhaps, _why, you could make a beautiful PNG
containing all of the color swatches and their names and include it
statically?