Class: Bitmapped::Commands::PixelFillCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Bitmapped::Commands::PixelFillCommand
- Includes:
- CommandsHelper
- Defined in:
- lib/bitmapped/commands/pixel_fill_command.rb
Instance Method Summary collapse
Methods included from CommandsHelper
#coordinates_to_array_indexes, #valid_cooridinates
Instance Method Details
#command_id ⇒ Object
10 11 12 |
# File 'lib/bitmapped/commands/pixel_fill_command.rb', line 10 def command_id "L" end |
#process_command(bitmap, input) ⇒ Object
14 15 16 17 18 |
# File 'lib/bitmapped/commands/pixel_fill_command.rb', line 14 def process_command(bitmap, input) Validators::ValidateBitmapInitialised.parse_and_validate(bitmap) column, row, color = Validators::ValidateFillInput.parse_and_validate(input) color_command(bitmap, column, row, color) end |