class Integer

Colour methods on Integer

Public Instance Methods

chroma(op,p) click to toggle source
# File lib/glug/extensions.rb, line 10
def chroma(op,p)
        chroma_hex(op,p).gsub('#','0x').to_i(16)
end
chroma_hex(op,p) click to toggle source
# File lib/glug/extensions.rb, line 7
def chroma_hex(op,p)
        ("#"+to_s(16).rjust(6,'0')).paint.send(op,p).to_hex
end
to_hex_color() click to toggle source
# File lib/glug/extensions.rb, line 13
def to_hex_color
        '#' + to_s(16).rjust(6,'0')
end