Module: TokyoMetro::Modules::Static::GetBackgroundColorInfo::EachRgbElement

Included in:
Static::TrainType::Custom::Main::Info
Defined in:
lib/tokyo_metro/modules/static/get_background_color_info/each_rgb_element.rb

Overview

背景色の RGB の各成分の情報を取得するメソッドを提供するモジュール

Instance Method Summary collapse

Instance Method Details

#bg_blueInteger

背景色の B 成分の値を返すメソッド

Returns:

  • (Integer)


18
19
20
# File 'lib/tokyo_metro/modules/static/get_background_color_info/each_rgb_element.rb', line 18

def bg_blue
  @bgcolor.blue
end

#bg_greenInteger

背景色の G 成分の値を返すメソッド

Returns:

  • (Integer)


12
13
14
# File 'lib/tokyo_metro/modules/static/get_background_color_info/each_rgb_element.rb', line 12

def bg_green
  @bgcolor.green
end

#bg_redInteger

背景色の R 成分の値を返すメソッド

Returns:

  • (Integer)


6
7
8
# File 'lib/tokyo_metro/modules/static/get_background_color_info/each_rgb_element.rb', line 6

def bg_red
  @bgcolor.red
end