Sha256: 58b012cfe32ec7bd201f118d80368ad95e5f3eee23fd154d891cad08c55f9c61
Contents?: true
Size: 360 Bytes
Versions: 1
Compression:
Stored size: 360 Bytes
Contents
require 'bitmapped/commands/base_command' module Bitmapped module Commands class RotateCommand < BaseCommand def command_id "R" end def process_command(bitmap, _) Validators::ValidateBitmapInitialised.parse_and_validate(bitmap) bitmap.pixels = bitmap.pixels.transpose.map &:reverse end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bitmapped-0.2.0 | lib/bitmapped/commands/rotate_command.rb |