Method: Twterm::Image::Color#initialize
- Defined in:
- lib/twterm/image/color.rb
#initialize(image, fg, bg = :transparent) ⇒ Color
Returns a new instance of Color.
6 7 8 9 10 |
# File 'lib/twterm/image/color.rb', line 6 def initialize(image, fg, bg = :transparent) super(image) @fg, @bg = fg, bg end |