Skip to content

Instantly share code, notes, and snippets.

@mgrider
Last active March 25, 2024 14:35
Show Gist options
  • Save mgrider/22044c4f3b05116c8478f038062338c3 to your computer and use it in GitHub Desktop.
Save mgrider/22044c4f3b05116c8478f038062338c3 to your computer and use it in GitHub Desktop.
A GFXP helper class for use with PlaydateKit
import PlaydateKit
/// A collection of [`PlaydateKit`](https://github.com/finnvoor/PlaydateKit/) `Graphics.Color` "patterns" based on [the GFXP library](https://github.com/ivansergeev/gfxp).
///
/// Use these in your `PlaydateKit` project by adding this file, and doing something like:
/// ```swift
/// Graphics.fillRect(.init(x: 10, y: 10, width: 100, height: 100), color: GFXP.lightGray)
/// ```
///
/// Alternatively, create your own patterns with [the GFXP editor](https://dev.crankit.app/tools/gfxp/)
/// and then copy the values so it looks something like this:
/// ```swift
/// let pattern: Graphics.Color = .pattern((0x0, 0x22, 0x3, 0xAA, 0x0, 0x22, 0x0, 0x88))
/// Graphics.fillRect(.init(x: 10, y: 60, width: 100, height: 100), color: pattern)
/// ```
///
/// `PlaydateKit` is in active development. Find the latest version of [`GFXP` for `PlaydateKit`](https://gist.github.com/mgrider/22044c4f3b05116c8478f038062338c3) in this GitHub Gist.
///
public enum GFXP {
// MARK: Grayscale
nonisolated(unsafe) static let lightGray: Graphics.Color = .pattern((0xff, 0xdd, 0xff, 0x77, 0xff, 0xdd, 0xff, 0x77))
nonisolated(unsafe) static let lightGray1: Graphics.Color = .pattern((0x77, 0x77, 0xdd, 0xdd, 0x77, 0x77, 0xdd, 0xdd))
nonisolated(unsafe) static let lightGray2: Graphics.Color = .pattern((0x77, 0x77, 0x77, 0x77, 0xdd, 0xdd, 0xdd, 0xdd))
nonisolated(unsafe) static let gray: Graphics.Color = .pattern((0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa))
nonisolated(unsafe) static let gray1: Graphics.Color = .pattern((0x33, 0x33, 0xcc, 0xcc, 0x33, 0x33, 0xcc, 0xcc))
nonisolated(unsafe) static let gray2: Graphics.Color = .pattern((0x33, 0x33, 0x33, 0x33, 0xcc, 0xcc, 0xcc, 0xcc))
nonisolated(unsafe) static let gray3: Graphics.Color = .pattern((0x55, 0x55, 0x55, 0x55, 0xaa, 0xaa, 0xaa, 0xaa))
nonisolated(unsafe) static let gray4: Graphics.Color = .pattern((0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55))
nonisolated(unsafe) static let gray5: Graphics.Color = .pattern((0xd2, 0x5a, 0x4b, 0x69, 0x2d, 0xa5, 0xb4, 0x96))
nonisolated(unsafe) static let darkGray: Graphics.Color = .pattern((0x0, 0x22, 0x0, 0x88, 0x0, 0x22, 0x0, 0x88))
nonisolated(unsafe) static let darkGray1: Graphics.Color = .pattern((0x88, 0x88, 0x22, 0x22, 0x88, 0x88, 0x22, 0x22))
nonisolated(unsafe) static let darkGray2: Graphics.Color = .pattern((0x88, 0x88, 0x88, 0x88, 0x22, 0x22, 0x22, 0x22))
// MARK: Dots
nonisolated(unsafe) static let dot1: Graphics.Color = .pattern((0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff))
nonisolated(unsafe) static let dot2: Graphics.Color = .pattern((0x7f, 0xff, 0xff, 0xff, 0xf7, 0xff, 0xff, 0xff))
nonisolated(unsafe) static let dot3: Graphics.Color = .pattern((0x3f, 0x3f, 0xff, 0xff, 0xf3, 0xf3, 0xff, 0xff))
nonisolated(unsafe) static let dot4: Graphics.Color = .pattern((0x66, 0xff, 0xff, 0x66, 0x66, 0xff, 0xff, 0x66))
nonisolated(unsafe) static let dot5: Graphics.Color = .pattern((0x1f, 0x5f, 0x1f, 0xff, 0xf1, 0xf5, 0xf1, 0xff))
nonisolated(unsafe) static let dot6: Graphics.Color = .pattern((0xf, 0x6f, 0x6f, 0xf, 0xf0, 0xf6, 0xf6, 0xf0))
nonisolated(unsafe) static let dot7: Graphics.Color = .pattern((0xff, 0xff, 0xe7, 0xdb, 0xdb, 0xe7, 0xff, 0xff))
nonisolated(unsafe) static let dot8: Graphics.Color = .pattern((0xaa, 0xaa, 0x55, 0x55, 0xba, 0xba, 0x55, 0x55))
nonisolated(unsafe) static let dot9: Graphics.Color = .pattern((0xab, 0xab, 0x55, 0x55, 0xba, 0xba, 0x55, 0x55))
nonisolated(unsafe) static let dot10: Graphics.Color = .pattern((0x55, 0xaa, 0x41, 0x9c, 0x5d, 0x9c, 0x41, 0xaa))
nonisolated(unsafe) static let dot11: Graphics.Color = .pattern((0x9f, 0x6f, 0x6f, 0x9f, 0xf9, 0xf6, 0xf6, 0xf9))
nonisolated(unsafe) static let dot12: Graphics.Color = .pattern((0xff, 0xe3, 0xdd, 0xbe, 0xbe, 0xbe, 0xdd, 0xe3))
nonisolated(unsafe) static let dot13: Graphics.Color = .pattern((0xff, 0xe3, 0xc1, 0x80, 0x80, 0x80, 0xc1, 0xe3))
nonisolated(unsafe) static let dot14: Graphics.Color = .pattern((0xff, 0xe7, 0xc3, 0x99, 0x99, 0xc3, 0xe7, 0xff))
nonisolated(unsafe) static let dot15: Graphics.Color = .pattern((0xbb, 0xf5, 0xf5, 0xf5, 0xb5, 0x5b, 0x5f, 0x5f))
nonisolated(unsafe) static let dot16: Graphics.Color = .pattern((0xbd, 0x5a, 0xa5, 0xdb, 0xdb, 0xa5, 0x5a, 0xbd))
nonisolated(unsafe) static let dot17: Graphics.Color = .pattern((0x5a, 0xa5, 0x5a, 0xa5, 0xa5, 0x5a, 0xa5, 0x5a))
nonisolated(unsafe) static let dot18: Graphics.Color = .pattern((0x7F, 0xB6, 0x6B, 0xF7, 0xDF, 0xAD, 0xDA, 0xFD))
// MARK: Crosses
nonisolated(unsafe) static let cross1: Graphics.Color = .pattern((0xff, 0xff, 0xff, 0x77, 0xaf, 0xdf, 0xaf, 0x77))
nonisolated(unsafe) static let cross2: Graphics.Color = .pattern((0xff, 0xbe, 0xdd, 0xeb, 0xf7, 0xeb, 0xdd, 0xbe))
nonisolated(unsafe) static let cross3: Graphics.Color = .pattern((0x55, 0xaa, 0x55, 0xbe, 0x5d, 0xbe, 0x55, 0xaa))
nonisolated(unsafe) static let cross4: Graphics.Color = .pattern((0xff, 0xdd, 0xaa, 0xd5, 0xeb, 0xd5, 0xaa, 0xdd))
nonisolated(unsafe) static let cross5: Graphics.Color = .pattern((0xfe, 0x38, 0xfe, 0xee, 0xef, 0x83, 0xef, 0xee))
// MARK: Vertical Lines
nonisolated(unsafe) static let vLine1: Graphics.Color = .pattern((0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f))
nonisolated(unsafe) static let vLine2: Graphics.Color = .pattern((0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77))
nonisolated(unsafe) static let vLine3: Graphics.Color = .pattern((0x6d, 0x6d, 0x6d, 0x6d, 0x6d, 0x6d, 0x6d, 0x6d))
nonisolated(unsafe) static let vLine4: Graphics.Color = .pattern((0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55))
nonisolated(unsafe) static let vLine5: Graphics.Color = .pattern((0xf7, 0xf7, 0xf7, 0xf7, 0x7f, 0x7f, 0x7f, 0x7f))
// MARK: Horizontal Lines
nonisolated(unsafe) static let hLine1: Graphics.Color = .pattern((0x0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff))
nonisolated(unsafe) static let hLine2: Graphics.Color = .pattern((0x0, 0xff, 0xff, 0xff, 0x0, 0xff, 0xff, 0xff))
nonisolated(unsafe) static let hLine3: Graphics.Color = .pattern((0x0, 0xff, 0xff, 0x0, 0xff, 0xff, 0x0, 0xff))
nonisolated(unsafe) static let hLine4: Graphics.Color = .pattern((0x0, 0xff, 0x0, 0xff, 0x0, 0xff, 0x0, 0xff))
nonisolated(unsafe) static let hLine5: Graphics.Color = .pattern((0xff, 0x14, 0xff, 0xa2, 0xff, 0x14, 0xff, 0xa2))
nonisolated(unsafe) static let hLine6: Graphics.Color = .pattern((0xf, 0xff, 0xff, 0xff, 0xf0, 0xff, 0xff, 0xff))
// MARK: Diagonal Lines
nonisolated(unsafe) static let dLine1: Graphics.Color = .pattern((0xfe, 0xfd, 0xfb, 0xf7, 0xef, 0xdf, 0xbf, 0x7f))
nonisolated(unsafe) static let dLine2: Graphics.Color = .pattern((0x7f, 0xbf, 0xdf, 0xef, 0xf7, 0xfb, 0xfd, 0xfe))
nonisolated(unsafe) static let dLine3: Graphics.Color = .pattern((0x77, 0xbb, 0xdd, 0xee, 0x77, 0xbb, 0xdd, 0xfe))
nonisolated(unsafe) static let dLine4: Graphics.Color = .pattern((0xff, 0xff, 0xf7, 0xef, 0xdf, 0xbf, 0x7f, 0xff))
nonisolated(unsafe) static let dLine5: Graphics.Color = .pattern((0xfc, 0x7e, 0x3f, 0x9f, 0xcf, 0xe7, 0xf3, 0xf9))
nonisolated(unsafe) static let dLine6: Graphics.Color = .pattern((0xf8, 0x7c, 0x3e, 0x1f, 0x8f, 0xc7, 0xe3, 0xf1))
nonisolated(unsafe) static let dLine7: Graphics.Color = .pattern((0xee, 0xdd, 0xbb, 0x77, 0xee, 0xdd, 0xbb, 0x77))
nonisolated(unsafe) static let dLine8: Graphics.Color = .pattern((0x77, 0xbb, 0xdd, 0xee, 0x77, 0xbb, 0xdd, 0xee))
// MARK: Waves
nonisolated(unsafe) static let wave1: Graphics.Color = .pattern((0xbb, 0xdd, 0xee, 0x77, 0xee, 0xdd, 0xbb, 0x77))
nonisolated(unsafe) static let wave2: Graphics.Color = .pattern((0xb7, 0x7b, 0xfc, 0xcf, 0xb7, 0x7b, 0xfc, 0xcf))
nonisolated(unsafe) static let wave3: Graphics.Color = .pattern((0xe7, 0xdb, 0xdb, 0xdb, 0xdb, 0xbd, 0x7e, 0xff))
// MARK: Grid
nonisolated(unsafe) static let grid1: Graphics.Color = .pattern((0xaa, 0x77, 0xaa, 0xdd, 0xaa, 0x77, 0xaa, 0xdd))
nonisolated(unsafe) static let grid2: Graphics.Color = .pattern((0x0, 0x77, 0x77, 0x77, 0x0, 0x77, 0x77, 0x77))
nonisolated(unsafe) static let grid3: Graphics.Color = .pattern((0x0, 0x6d, 0x6d, 0x0, 0x6d, 0x6d, 0x0, 0x6d))
nonisolated(unsafe) static let grid4: Graphics.Color = .pattern((0xe7, 0xdb, 0xbd, 0x7e, 0x7e, 0xbd, 0xdb, 0xe7))
nonisolated(unsafe) static let grid5: Graphics.Color = .pattern((0xff, 0xaa, 0xd5, 0xaa, 0xd5, 0xaa, 0xd5, 0xaa))
nonisolated(unsafe) static let grid6: Graphics.Color = .pattern((0x0, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f))
// MARK: Rect
nonisolated(unsafe) static let rect1: Graphics.Color = .pattern((0xff, 0x80, 0xbe, 0xbe, 0xbe, 0xbe, 0xbe, 0x80))
nonisolated(unsafe) static let rect2: Graphics.Color = .pattern((0xff, 0x81, 0xbd, 0xbd, 0xbd, 0xbd, 0x81, 0xff))
nonisolated(unsafe) static let rect3: Graphics.Color = .pattern((0xff, 0x20, 0xaf, 0xaf, 0xaf, 0xaf, 0x20, 0xff))
// MARK: Bricks
nonisolated(unsafe) static let brick1: Graphics.Color = .pattern((0x0, 0xdf, 0xdf, 0xdf, 0x0, 0xfd, 0xfd, 0xfd))
nonisolated(unsafe) static let brick2: Graphics.Color = .pattern((0x0, 0x0, 0xcf, 0xcf, 0x0, 0x0, 0xfc, 0xfc))
nonisolated(unsafe) static let brick3: Graphics.Color = .pattern((0x0, 0x77, 0x0, 0xdd, 0x0, 0x77, 0x0, 0xdd))
nonisolated(unsafe) static let brick4: Graphics.Color = .pattern((0x7e, 0xbd, 0xdb, 0xe7, 0xf7, 0xfb, 0xfd, 0xfe))
nonisolated(unsafe) static let brick5: Graphics.Color = .pattern((0x7e, 0xbd, 0xdb, 0xe7, 0xef, 0xdf, 0xbf, 0x7f))
nonisolated(unsafe) static let brick6: Graphics.Color = .pattern((0x55, 0xbb, 0xdd, 0xee, 0x55, 0xbb, 0xdd, 0xee))
nonisolated(unsafe) static let brick7: Graphics.Color = .pattern((0xaa, 0xdd, 0xbb, 0x77, 0xaa, 0xdd, 0xbb, 0x77))
nonisolated(unsafe) static let brick8: Graphics.Color = .pattern((0x5f, 0xae, 0x57, 0xab, 0xd5, 0xea, 0xf5, 0xbb))
nonisolated(unsafe) static let brick9: Graphics.Color = .pattern((0xfa, 0x75, 0xea, 0xd5, 0xab, 0x57, 0xaf, 0xdd))
nonisolated(unsafe) static let brick10: Graphics.Color = .pattern((0x5f, 0xee, 0x77, 0xbb, 0xdd, 0xee, 0xf5, 0xbb))
nonisolated(unsafe) static let brick11: Graphics.Color = .pattern((0xfa, 0x77, 0xee, 0xdd, 0xbb, 0x77, 0xaf, 0xdd))
// MARK: Flakes
nonisolated(unsafe) static let flake1: Graphics.Color = .pattern((0x7e, 0xbd, 0xc3, 0xfb, 0xfb, 0xfb, 0xfd, 0xfe))
nonisolated(unsafe) static let flake2: Graphics.Color = .pattern((0x7e, 0xbd, 0xc3, 0xdf, 0xdf, 0xdf, 0xbf, 0x7f))
nonisolated(unsafe) static let flake3: Graphics.Color = .pattern((0xfe, 0x3d, 0xc3, 0xfb, 0xfb, 0xfb, 0xfd, 0xfd))
nonisolated(unsafe) static let flake4: Graphics.Color = .pattern((0x7f, 0xbc, 0xc3, 0xdf, 0xdf, 0xdf, 0xbf, 0xbf))
nonisolated(unsafe) static let flake5: Graphics.Color = .pattern((0x7d, 0xbb, 0xcb, 0xf7, 0xcb, 0xbb, 0x7d, 0xfe))
nonisolated(unsafe) static let flake6: Graphics.Color = .pattern((0xe1, 0xde, 0xbe, 0x7f, 0x7f, 0x7f, 0x9f, 0xef))
nonisolated(unsafe) static let flake7: Graphics.Color = .pattern((0x7e, 0xbd, 0xbb, 0xb7, 0x8f, 0xef, 0xe1, 0xfe))
nonisolated(unsafe) static let flake8: Graphics.Color = .pattern((0xf7, 0xf7, 0xeb, 0x9c, 0x7f, 0x7f, 0xbe, 0xc9))
nonisolated(unsafe) static let flake9: Graphics.Color = .pattern((0xfe, 0x3d, 0xcb, 0xf7, 0xfb, 0xfb, 0xfd, 0xfd))
nonisolated(unsafe) static let flake10: Graphics.Color = .pattern((0x7f, 0xae, 0xd5, 0xbb, 0xdf, 0xef, 0xdf, 0xbf))
// MARK: Decor
nonisolated(unsafe) static let decor1: Graphics.Color = .pattern((0x1f, 0x37, 0x73, 0xf1, 0xf1, 0x73, 0x37, 0x1f))
nonisolated(unsafe) static let decor2: Graphics.Color = .pattern((0xf8, 0xec, 0xce, 0x8f, 0x8f, 0xce, 0xec, 0xf8))
nonisolated(unsafe) static let decor3: Graphics.Color = .pattern((0xff, 0xe7, 0xe7, 0x99, 0x99, 0xe7, 0xe7, 0xff))
nonisolated(unsafe) static let decor4: Graphics.Color = .pattern((0x7f, 0xa3, 0xdd, 0xbb, 0x77, 0xf0, 0xf7, 0xf8))
nonisolated(unsafe) static let decor5: Graphics.Color = .pattern((0xb6, 0x6b, 0xbd, 0x6a, 0xb7, 0x55, 0xbe, 0x55))
nonisolated(unsafe) static let decor6: Graphics.Color = .pattern((0x6d, 0xb6, 0x6b, 0xdd, 0xaa, 0x77, 0xb5, 0xda))
nonisolated(unsafe) static let decor7: Graphics.Color = .pattern((0xad, 0xd6, 0x6b, 0xb5, 0xda, 0x56, 0xad, 0xda))
nonisolated(unsafe) static let decor8: Graphics.Color = .pattern((0xe7, 0xdb, 0xbd, 0xa5, 0xbd, 0xdb, 0xb5, 0x6e))
nonisolated(unsafe) static let decor9: Graphics.Color = .pattern((0xe3, 0xdd, 0xb6, 0xa5, 0xbd, 0xdb, 0x52, 0xbd))
nonisolated(unsafe) static let decor10: Graphics.Color = .pattern((0x77, 0xad, 0xda, 0x77, 0xad, 0xda, 0x77, 0xad))
nonisolated(unsafe) static let decor11: Graphics.Color = .pattern((0x66, 0xdb, 0xbd, 0x66, 0x66, 0xbd, 0xdb, 0x66))
nonisolated(unsafe) static let decor12: Graphics.Color = .pattern((0xaa, 0xaa, 0xff, 0x20, 0xef, 0x28, 0xeb, 0x2a))
nonisolated(unsafe) static let decor13: Graphics.Color = .pattern((0xff, 0x81, 0xbd, 0xa5, 0xa5, 0xbd, 0x81, 0xff))
nonisolated(unsafe) static let decor14: Graphics.Color = .pattern((0xb6, 0x6d, 0xdb, 0xb6, 0x6d, 0xdb, 0xb6, 0x6d))
nonisolated(unsafe) static let decor15: Graphics.Color = .pattern((0x7f, 0x40, 0x5f, 0x51, 0x55, 0x5d, 0x41, 0x7f))
nonisolated(unsafe) static let decor16: Graphics.Color = .pattern((0x66, 0xbd, 0xc3, 0x7e, 0x7e, 0xc3, 0xbd, 0x66))
nonisolated(unsafe) static let decor17: Graphics.Color = .pattern((0xcf, 0x9f, 0x3f, 0x6e, 0xe7, 0xf1, 0xf8, 0xee))
nonisolated(unsafe) static let decor18: Graphics.Color = .pattern((0x1e, 0xee, 0xc2, 0xd9, 0x9b, 0x43, 0x77, 0x78))
nonisolated(unsafe) static let decor19: Graphics.Color = .pattern((0x9d, 0x66, 0xda, 0xbd, 0xbd, 0x5b, 0x66, 0xb9))
nonisolated(unsafe) static let decor20: Graphics.Color = .pattern((0xff, 0x55, 0xff, 0xdd, 0xff, 0x57, 0xff, 0xdd))
nonisolated(unsafe) static let decor21: Graphics.Color = .pattern((0x99, 0x7e, 0x66, 0xdb, 0xdb, 0x66, 0x7e, 0x99))
nonisolated(unsafe) static let decor22: Graphics.Color = .pattern((0x7e, 0xbd, 0xc3, 0xdb, 0xdb, 0xc3, 0xbd, 0x7e))
nonisolated(unsafe) static let decor23: Graphics.Color = .pattern((0x55, 0xba, 0x65, 0xca, 0x95, 0xaa, 0x55, 0xaa))
nonisolated(unsafe) static let decor24: Graphics.Color = .pattern((0xab, 0x77, 0xfa, 0x7d, 0xbe, 0x5f, 0xee, 0xd5))
nonisolated(unsafe) static let decor25: Graphics.Color = .pattern((0xeb, 0xf7, 0xeb, 0xdd, 0xbe, 0x7f, 0x7f, 0x9c))
nonisolated(unsafe) static let decor26: Graphics.Color = .pattern((0xEE, 0xD7, 0xBB, 0x6D, 0xB6, 0xDD, 0xEB, 0x77))
// MARK: Noise
nonisolated(unsafe) static let noise1: Graphics.Color = .pattern((0xfb, 0xdf, 0x7d, 0xef, 0xff, 0xbb, 0xef, 0xfe))
nonisolated(unsafe) static let noise2: Graphics.Color = .pattern((0xff, 0xf7, 0xbe, 0xff, 0xef, 0xff, 0xfd, 0xdf))
nonisolated(unsafe) static let noise3: Graphics.Color = .pattern((0xfb, 0x7f, 0xdd, 0xef, 0x7e, 0xf7, 0xbe, 0xf7))
nonisolated(unsafe) static let noise4: Graphics.Color = .pattern((0xbb, 0x7d, 0xef, 0xbe, 0xdf, 0xf7, 0xbe, 0xdb))
nonisolated(unsafe) static let noise5: Graphics.Color = .pattern((0xeb, 0xbe, 0xf7, 0xba, 0xdf, 0xb6, 0xfb, 0x6d))
nonisolated(unsafe) static let noise6: Graphics.Color = .pattern((0x66, 0x99, 0xa5, 0x5a, 0x5a, 0xa5, 0x99, 0x66))
nonisolated(unsafe) static let noise7: Graphics.Color = .pattern((0x5c, 0x5c, 0xea, 0xea, 0x47, 0x47, 0xaa, 0xaa))
// MARK: Emojis
nonisolated(unsafe) static let emoji: Graphics.Color = .pattern((0x0, 0x3c, 0x7e, 0x5a, 0x7e, 0x66, 0x3c, 0x0))
nonisolated(unsafe) static let emojismile: Graphics.Color = .pattern((0x0, 0x3c, 0x5a, 0x7e, 0x5a, 0x66, 0x3c, 0x0))
nonisolated(unsafe) static let emojifun: Graphics.Color = .pattern((0x0, 0x3c, 0x5a, 0x7e, 0x42, 0x66, 0x3c, 0x0))
nonisolated(unsafe) static let emojisurprise: Graphics.Color = .pattern((0x0, 0x3c, 0x5a, 0x7e, 0x66, 0x66, 0x3c, 0x0))
nonisolated(unsafe) static let emojisad: Graphics.Color = .pattern((0x0, 0x3c, 0x5a, 0x7e, 0x66, 0x5a, 0x3c, 0x0))
nonisolated(unsafe) static let emojiscream: Graphics.Color = .pattern((0x0, 0x3c, 0x5a, 0x7e, 0x42, 0x42, 0x3c, 0x0))
nonisolated(unsafe) static let emojiangry: Graphics.Color = .pattern((0x0, 0x3c, 0x5a, 0x7e, 0x42, 0x5a, 0x3c, 0x0))
nonisolated(unsafe) static let emojipirate: Graphics.Color = .pattern((0x0, 0x34, 0x4E, 0x4A, 0x3E, 0x66, 0x3C, 0x0))
nonisolated(unsafe) static let emojiskull: Graphics.Color = .pattern((0x0, 0x3C, 0x7E, 0x5A, 0x7E, 0x24, 0x3C, 0x0))
nonisolated(unsafe) static let emojialien: Graphics.Color = .pattern((0x0, 0x3C, 0x5A, 0x5A, 0x7E, 0x24, 0x18, 0x0))
// MARK: Misc
nonisolated(unsafe) static let heart1: Graphics.Color = .pattern((0xff, 0xc9, 0xb6, 0xbe, 0xdd, 0xeb, 0xf7, 0xff))
nonisolated(unsafe) static let heart2: Graphics.Color = .pattern((0xff, 0xc9, 0x80, 0x80, 0xc1, 0xe3, 0xf7, 0xff))
nonisolated(unsafe) static let pacman1: Graphics.Color = .pattern((0xff, 0xe3, 0xdd, 0xbb, 0xb7, 0xbb, 0xdd, 0xe3))
nonisolated(unsafe) static let tree1: Graphics.Color = .pattern((0xff, 0xf7, 0xeb, 0xf7, 0xc9, 0xf7, 0x88, 0xf7))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment