Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
aoc-2020
master
Aoc
Day
Day1
Day10
Day11
SeatMap
Seat
Day12
Direction
Day13
Day14
Day15
Day16
Field
Day17
CubeField
Day18
ComplexExpression
Expression
Operation
Scalar
Day19
CompoundRule
Rule
StringRule
Day2
Constraint
Day20
Collage
Image
Orientation
Day21
Day22
Day23
Day24
Day25
Day3
Day4
Passport
Day5
BoardingPass
Day6
Day7
Day8
Operation
Day9
Built with Crystal 1.9.2
2023-10-07 20:43:19 UTC
class
Aoc::Day20::Image
Aoc::Day20::Image
Reference
Object
Defined in:
day/20.cr
Constructors
.new
(pixels : Array(Array(Bool)))
.new
(pixels : Array(String))
Instance Method Summary
#border
(orientation)
#flip_horizontally!
#flip_vertically!
#turn!
(orientation)
Constructor Detail
def self.
new
(pixels : Array(Array(Bool)))
#
[
View source
]
def self.
new
(pixels : Array(String))
#
[
View source
]
Instance Method Detail
def
border
(orientation)
#
[
View source
]
def
flip_horizontally!
#
[
View source
]
def
flip_vertically!
#
[
View source
]
def
turn!
(orientation)
#
[
View source
]