Module: Falu
- Defined in:
- lib/falu/image.rb,
lib/falu.rb,
lib/falu/color.rb,
lib/falu/swatch.rb,
lib/falu/palette.rb,
lib/falu/version.rb,
lib/falu/colors/hex.rb,
lib/falu/colors/hsl.rb,
lib/falu/colors/rgb.rb,
lib/falu/colors/base.rb,
lib/falu/image_palette.rb,
lib/falu/dithered_palette.rb
Overview
TODO currently this relies on shelling out to imagemagick via minimagick, but could be improved
Image
- Images
-
Image Original Dithered Scaled
Defined Under Namespace
Modules: Colors, Version Classes: Color, DitheredPalette, Image, ImagePalette, Palette, Swatch
Class Method Summary collapse
Class Method Details
.colors ⇒ Object
15 16 17 18 19 20 |
# File 'lib/falu.rb', line 15 def self.colors @colors ||= File.read(File.('../../colors.txt', __FILE__)).split("\n").map do |c| carr = c.split("|") {name: carr[0], hex: carr[1], rgb: carr[2], hsl: carr[3]} end end |