red-data-tools / red-colors

Color features for Ruby
MIT License
4 stars 3 forks source link

Rake tasks to update xkcd and css3 named colors #8

Open kou opened 4 years ago

kou commented 4 years ago

From https://github.com/red-data-tools/charty/issues/41 :

In red-data-tools/charty#36, xkcd and css3 named colors will be introduced. It would be much better if there are rake tasks updating them.

See https://github.com/red-data-tools/charty/pull/36#discussion_r333837802 and https://github.com/red-data-tools/charty/pull/36#discussion_r333837879.

kou commented 2 years ago

https://github.com/red-data-tools/red-colors/blob/master/lib/colors/color_data.rb should be update-able by rake colors:update from source such as https://xkcd.com/color/rgb.txt and https://drafts.csswg.org/css-color-4/#named-colors .