Sha256: da735d8f327c57c46c9494a6b9c5f7a870fed5319863d7d491ec4bed19950659

Contents?: true

Size: 805 Bytes

Versions: 109

Compression:

Stored size: 805 Bytes

Contents

# -*- ruby encoding: utf-8 -*-

class Color::RGB
  # This namespace contains some RGB metallic colours suggested by Jim
  # Freeze.
  module Metallic; end

  class << self
    private
    def metallic(rgb, *names)
      __named_color(Metallic, new(*rgb), *names)
    end
  end

  metallic [0x99, 0x99, 0x99], :Aluminum
  metallic [0xd9, 0x87, 0x19], :CoolCopper
  metallic [0xb8, 0x73, 0x33], :Copper
  metallic [0x4c, 0x4c, 0x4c], :Iron
  metallic [0x19, 0x19, 0x19], :Lead
  metallic [0xb3, 0xb3, 0xb3], :Magnesium
  metallic [0xe6, 0xe6, 0xe6], :Mercury
  metallic [0x80, 0x80, 0x80], :Nickel
  metallic [0x60, 0x00, 0x00], :PolySilicon, :Poly
  metallic [0xcc, 0xcc, 0xcc], :Silver
  metallic [0x66, 0x66, 0x66], :Steel
  metallic [0x7f, 0x7f, 0x7f], :Tin
  metallic [0x33, 0x33, 0x33], :Tungsten
end

Version data entries

109 entries across 109 versions & 2 rubygems

Version Path
atome-0.5.2.5 lib/atome/helpers/color_helper/color/rgb/metallic.rb
atome-0.5.1.9 lib/atome/helpers/color_helper/color/rgb/metallic.rb
atome-0.5.1.4 lib/atome/helpers/color_helper/color/rgb/metallic.rb
atome-0.5.1.1 lib/atome/helpers/color_helper/color/rgb/metallic.rb
color-1.8 lib/color/rgb/metallic.rb
color-1.7.1 lib/color/rgb/metallic.rb
color-1.7 lib/color/rgb/metallic.rb
color-1.6 lib/color/rgb/metallic.rb
color-1.5.1 lib/color/rgb/metallic.rb