--- /dev/null
+public enum TileDesign: CaseIterable {
+ case grid
+ case dottedGrid
+ case stitch
+ case curvedTile
+ case brick
+ case tile
+ case shadowGrid
+ case circles
+ case trees
+ case shingles
+ case wicker
+ case rhombus
+ case balls
+
+ func pixels() -> [Int] {
+ switch self {
+ case .grid:
+ return [
+ 1, 0, 1, 0, 1, 0, 1, 0,
+ 0, 1, 0, 1, 0, 1, 0, 1,
+ 1, 0, 1, 0, 1, 0, 1, 0,
+ 0, 1, 0, 1, 0, 1, 0, 1,
+ 1, 0, 1, 0, 1, 0, 1, 0,
+ 0, 1, 0, 1, 0, 1, 0, 1,
+ 1, 0, 1, 0, 1, 0, 1, 0,
+ 0, 1, 0, 1, 0, 1, 0, 1
+ ]
+ case .dottedGrid:
+ return [
+ 1, 1, 1, 1, 0, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1,
+ 0, 1, 0, 1, 0, 1, 0, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 0, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1,
+ 0, 1, 1, 1, 0, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1,
+ ]
+ case .stitch:
+ return [
+ 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 0, 1, 1, 1, 1, 1, 1,
+ 0, 1, 0, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 0, 1, 1,
+ 1, 1, 1, 1, 0, 1, 0, 1,
+ ]
+ case .curvedTile:
+ return [
+ 1, 1, 1, 1, 1, 1, 1, 0,
+ 1, 1, 1, 1, 1, 1, 0, 0,
+ 0, 1, 1, 1, 1, 0, 1, 1,
+ 1, 0, 1, 1, 0, 1, 1, 1,
+ 1, 1, 0, 0, 1, 1, 1, 1,
+ 1, 1, 1, 1, 0, 0, 1,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