Sha256: ad386d3875dfbfe69d32333e9fbcd1a8a649fd98482d77ba152f849392fd8f49
Contents?: true
Size: 956 Bytes
Versions: 1
Compression:
Stored size: 956 Bytes
Contents
module Graphit class Color # 0 - 255 attr_accessor :red attr_accessor :green attr_accessor :blue def initialize( red, green, blue ) self.red = red self.green = green self.blue = blue end def to_hex_array [blue,green,red] end def self.light_light_gray_color Graphit::Color.new( 225, 225, 225 ) end def self.light_gray_color Graphit::Color.new( 204, 204, 204 ) end def self.medium_gray_color Graphit::Color.new( 170, 170, 170 ) end def self.white_color Graphit::Color.new( 255, 255, 255 ) end def self.black_color Graphit::Color.new( 0, 0, 0 ) end def self.red_color Graphit::Color.new( 255, 0, 0 ) end def self.blue_color Graphit::Color.new( 0, 0, 255 ) end def self.green_color Graphit::Color.new( 0, 255, 0 ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
graphit-0.1.1 | lib/graphit/color.rb |