Class: CMagick::RGBToANSI

Inherits:
Object
  • Object
show all
Defined in:
lib/cmagick/rgb_to_ansi.rb

Overview

r = ‘ff’.hex g = ‘e7’.hex b = ‘f4’.hex c.call(r: r, g: g, b: b)

> 224

r = ‘ff’.hex g = ‘ff’.hex b = ‘ff’.hex c.call(r: r, g: g, b: b)

> 231

r = ‘00’.hex g = ‘00’.hex b = ‘00’.hex c.call(r: r, g: g, b: b)

> 16

rubocop:disable Naming/UncommunicativeMethodParamName

Class Method Summary collapse

Class Method Details

.call(r, g, b) ⇒ Object



26
27
28
# File 'lib/cmagick/rgb_to_ansi.rb', line 26

def call(r, g, b)
  ansi(r, g, b)
end