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
-
#bg_blue ⇒ Integer
背景色の B 成分の値を返すメソッド.
-
#bg_green ⇒ Integer
背景色の G 成分の値を返すメソッド.
-
#bg_red ⇒ Integer
背景色の R 成分の値を返すメソッド.
Instance Method Details
#bg_blue ⇒ Integer
背景色の B 成分の値を返すメソッド
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_green ⇒ Integer
背景色の G 成分の値を返すメソッド
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_red ⇒ Integer
背景色の R 成分の値を返すメソッド
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 |