Class: Integer

Inherits:
Object
  • Object
show all
Defined in:
lib/glug/extensions.rb

Instance Method Summary collapse

Instance Method Details

#chroma(op, p) ⇒ Object



6
7
8
# File 'lib/glug/extensions.rb', line 6

def chroma(op,p)
  chroma_hex(op,p).gsub('#','0x').to_i(16)
end

#chroma_hex(op, p) ⇒ Object



3
4
5
# File 'lib/glug/extensions.rb', line 3

def chroma_hex(op,p)
  ("#"+to_s(16).rjust(6,'0')).paint.send(op,p).to_hex
end