Module: Badline::VIC::GraphicsMode::Hires
- Included in:
- Bitmap, ExtendedBackgroundText, MulticolorText, Text
- Defined in:
- lib/badline/vic/graphics_mode.rb
Instance Method Summary collapse
Instance Method Details
#paint_hires(data, color, background, seq) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/badline/vic/graphics_mode.rb', line 21 def paint_hires(data, color, background, seq) seq.cur_fg = HIRES_FG[data] colors = seq.cur_colors return colors.fill(background) if data.zero? i = 0 while i < 8 colors[i] = data.anybits?(1 << (7 - i)) ? color : background i += 1 end end |