Arduino “having11” Guy
Published © GPL3+

Interactive Talking Halloween Game

Press a button to see if you can get some extra candy from the talking skull. Spooky graphics are displayed on a matrix and LCD screen.

IntermediateFull instructions providedOver 1 day308
Interactive Talking Halloween Game

Things used in this project

Hardware components

Teensy 3.5
Teensy 3.5
×1
Teensy USB 3.2 Development Board
Teensy USB 3.2 Development Board
×1
Audio Adapter Board for Teensy 3.x
×1
SparkFun APDS-9960
×1
DFRobot 2.8" TFT LCD
×1
WS2812b LED Strip- 350 total LEDs
×1

Software apps and online services

Arduino IDE
Arduino IDE
Fusion 360
Autodesk Fusion 360
VS Code
Microsoft VS Code

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)
Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Custom parts and enclosures

Handle

Main Enclosure

Schematics

Schemtaic

Code

Halloween Display

C/C++
//#include "matrix_frames.h"
#include <SPI.h>
#include <SD.h>
//#include <ILI9341_t3.h>
//#include <font_Arial.h>
#define FASTLED_ALLOW_INTERRUPTS 1
#include <FastLED.h>
#include <Adafruit_GFX.h>
#include "Adafruit_ILI9341.h"
#include <Entropy.h>
#include <Audio.h>
#include <Wire.h>
#include <SparkFun_APDS9960.h>
//#include <Bounce2.h>
//#include <MsTimer2.h>
#include <SerialFlash.h>

// GUItool: begin automatically generated code
AudioPlaySdWav           playSdWav1;     //xy=197,191
AudioMixer4              mixer1;         //xy=390.01666259765625,200.01666259765625
AudioAnalyzePeak         peak1;          //xy=623.0166625976562,211.01666259765625
AudioOutputI2S           i2s1;           //xy=658,166
AudioControlSGTL5000     sgtl5000;
AudioConnection          patchCord1(playSdWav1, 0, mixer1, 0);
AudioConnection          patchCord2(mixer1, peak1);
AudioConnection          patchCord3(mixer1, 0, i2s1, 0);
// GUItool: end automatically generated code

//I2S uses pins 9, 11, 22, 23
//BCLK, MCLK (not used), Tx, LRCLK

#define TFT_DC 5 //Can't be pin 9 for I2S, choose something else
#define TFT_CS 10
#define TFT_RST 6
#define TFT_MOSI 7
#define TFT_SCLK 13
#define TFT_MISO 12
//#define SDCARD_CS_PIN BUILTIN_SDCARD
//#define SDCARD_MOSI_PIN 7
//#define SDCARD_SCK_PIN 14

/*#define MATRIX_W 20
#define MATRIX_H 15
#define MATRIX_PIN 2*/
#define BACKGROUND_LED_PIN 3
#define SKULL_LED_PIN 4
#define COLOR_ORDER GRB
#define CHIPSET NEOPIXEL
//#define MATRIX_BRIGHTNESS 64

//#define MATRIX_UPDATE_RATE 10

//#define TOTAL_LEDS (MATRIX_W * MATRIX_H)

#define BACKGROUND_LED_NUM 60
#define SKULL_LED_NUM 2

#define DISTANCE_MIN 41
#define DISTANCE_MAX 50

int buttonLedPins[7] = {24, 25, 26, 27, 28, 29, 30};
int buttonInputPins[7] = {31, 32, 33, 34, 35, 36, 37};

Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST, TFT_MISO);
SparkFun_APDS9960 apds = SparkFun_APDS9960();

//CRGB matrix_leds[300];
CRGB background_leds[BACKGROUND_LED_NUM];
CRGB skull_leds[SKULL_LED_NUM];

enum GAME_STATES {
    WAITING, //what to do while waiting for the player
    PLAYER_FOUND, //player has been found
    PLACING_CANDY, //player has started random selection process
    SELECTED, //player has chosen their button
    GET_CANDY, //based on button chosen, display how much candy has been won
    RESET //player has gotten candy and it is time to reset
} game_state;

int currentFrame = 0, buttonChosen = 0;
void drawBitmap(const char* filename, uint16_t x=0, uint16_t y=0);

void setup()
{
    Serial.begin(115200);
    Wire.begin();
    game_state = WAITING;
    for(int pin = 0; pin < 7; pin++) pinMode(buttonInputPins[pin], INPUT_PULLUP);
    //for(int pin = 0; pin < 7; pin++) digitalWrite(buttonInputPins[pin], HIGH);
    for(int pin = 0; pin < 7; pin++) pinMode(buttonLedPins[pin], OUTPUT);
    setButtons(LOW);
    //FastLED.addLeds<CHIPSET, MATRIX_PIN>(matrix_leds, 300);
    //FastLED.setBrightness(MATRIX_BRIGHTNESS);
    FastLED.addLeds<CHIPSET, BACKGROUND_LED_PIN>(background_leds, BACKGROUND_LED_NUM);
    FastLED.setBrightness(30);
    FastLED.addLeds<CHIPSET, SKULL_LED_PIN>(skull_leds, SKULL_LED_NUM).setCorrection(TypicalSMD5050);
    FastLED.setBrightness(60);
    FastLED.show();
    AudioMemory(10);
    sgtl5000.enable();
    sgtl5000.volume(.8);
    //SPI.setMOSI(SDCARD_MOSI_PIN);
    //SPI.setSCK(SDCARD_SCK_PIN);
    SD.begin(BUILTIN_SDCARD);
    apds.init();
    apds.enableGestureSensor(false);
    apds.setProximityGain(PGAIN_2X);
    apds.enableProximitySensor(false);
    tft.begin();
    tft.fillScreen(ILI9341_WHITE);
    tft.setTextColor(ILI9341_BLACK);
    tft.setRotation(1);
    //tft.setFont(Arial_24);
    for(int i=0; i<BACKGROUND_LED_NUM; i++) background_leds[i] = 0x00;
    FastLED.show();
    Entropy.Initialize();
    drawBitmap("INTRO.BMP");
    //MsTimer2::set(1000 * MATRIX_UPDATE_RATE, updateFrameNumber);
    //MsTimer2::start();
}

void loop()
{
    switch(game_state)
    {
        case WAITING:
            updateButtons();
            checkForPlayer();
            break;
        case PLAYER_FOUND:
            welcomePlayer();
            break;
        case PLACING_CANDY:
            startGame();
            break;
        case SELECTED: //Wait for player to choose button and then decide candy from that
            buttonChosen = getPlayerSelection();
            game_state = GET_CANDY;
            break;
        case GET_CANDY:
            displayCandyWon();
            break;
        case RESET:
            resetGame();
            break;
    }
    //changeFrame();
}

void resetGame()
{
    setButtons(LOW);
    drawBitmap("INTRO.BMP");
    game_state = WAITING;
}

void displayCandyWon()
{
    setButtons(LOW);
    for(int i=0; i<3; i++)
    {
        digitalWrite(buttonLedPins[buttonChosen], HIGH);
        FastLED.delay(500);
        digitalWrite(buttonLedPins[buttonChosen], LOW);
        FastLED.delay(500);
    }
    drawBitmap("WHATWON.BMP");
    playSound("WHATWON.WAV");
    int randNum = Entropy.random(0, 7);
    if(randNum >= 5)
    {
        drawBitmap("WONTWO.BMP");
        playSound("WONTWO.WAV");
    }
    else
    {
        drawBitmap("WONONE.BMP");
        playSound("WONONE.WAV");
    }
    drawBitmap("INSTRUCT.BMP");
    playSound("INSTRUCT.WAV");
    game_state = RESET;
}

int getPlayerSelection()
{
    int buttonChoice = 10;
    while(buttonChoice == 10)
    {
        for(int i=0; i<7; i++)
        {
            bool pinVal = digitalRead(buttonInputPins[i]);
            Serial.print((pinVal) ? "1" : "0");
            if(!pinVal){
                buttonChoice = i;
                Serial.printf("Button %d was pressed\n", buttonChoice);
                return buttonChoice;
            } 
        }
        Serial.println();
        FastLED.delay(300);
    }
}

void startGame()
{   
    drawBitmap("CANDYP.BMP");
    playSound("CANDYP.WAV");
    for(int i=0; i<10; i++)
    {
        for(int pin=0; pin < 7; pin++)
        {
            int ledVal = Entropy.random(0, 2); //Generate value between 0 and 1 inclusive
            digitalWrite(buttonLedPins[pin], ledVal);
        }
        FastLED.delay(300);
    }
    setButtons(HIGH);
    game_state = SELECTED;
}

#define BUFFPIXEL 20

uint16_t read16(File &f) {
  uint16_t result;
  ((uint8_t *)&result)[0] = f.read(); // LSB
  ((uint8_t *)&result)[1] = f.read(); // MSB
  return result;
}

uint32_t read32(File &f) {
  uint32_t result;
  ((uint8_t *)&result)[0] = f.read(); // LSB
  ((uint8_t *)&result)[1] = f.read();
  ((uint8_t *)&result)[2] = f.read();
  ((uint8_t *)&result)[3] = f.read(); // MSB
  return result;
}

void drawBitmap(const char* filename, uint16_t x=0, uint16_t y=0)
{
    File     bmpFile;
  int      bmpWidth, bmpHeight;   // W+H in pixels
  uint8_t  bmpDepth;              // Bit depth (currently must be 24)
  uint32_t bmpImageoffset;        // Start of image data in file
  uint32_t rowSize;               // Not always = bmpWidth; may have padding
  uint8_t  sdbuffer[3*BUFFPIXEL]; // pixel buffer (R+G+B per pixel)
  uint8_t  buffidx = sizeof(sdbuffer); // Current position in sdbuffer
  boolean  goodBmp = false;       // Set to true on valid header parse
  boolean  flip    = true;        // BMP is stored bottom-to-top
  int      w, h, row, col, x2, y2, bx1, by1;
  uint8_t  r, g, b;
  uint32_t pos = 0, startTime = millis();

  if((x >= tft.width()) || (y >= tft.height())) return;

  Serial.println();
  Serial.print(F("Loading image '"));
  Serial.print(filename);
  Serial.println('\'');

  // Open requested file on SD card
  if ((bmpFile = SD.open(filename)) == NULL) {
    Serial.print(F("File not found"));
    return;
  }

  // Parse BMP header
  if(read16(bmpFile) == 0x4D42) { // BMP signature
    Serial.print(F("File size: ")); Serial.println(read32(bmpFile));
    (void)read32(bmpFile); // Read & ignore creator bytes
    bmpImageoffset = read32(bmpFile); // Start of image data
    Serial.print(F("Image Offset: ")); Serial.println(bmpImageoffset, DEC);
    // Read DIB header
    Serial.print(F("Header size: ")); Serial.println(read32(bmpFile));
    bmpWidth  = read32(bmpFile);
    bmpHeight = read32(bmpFile);
    if(read16(bmpFile) == 1) { // # planes -- must be '1'
      bmpDepth = read16(bmpFile); // bits per pixel
      Serial.print(F("Bit Depth: ")); Serial.println(bmpDepth);
      if((bmpDepth == 24) && (read32(bmpFile) == 0)) { // 0 = uncompressed

        goodBmp = true; // Supported BMP format -- proceed!
        Serial.print(F("Image size: "));
        Serial.print(bmpWidth);
        Serial.print('x');
        Serial.println(bmpHeight);

        // BMP rows are padded (if needed) to 4-byte boundary
        rowSize = (bmpWidth * 3 + 3) & ~3;

        // If bmpHeight is negative, image is in top-down order.
        // This is not canon but has been observed in the wild.
        if(bmpHeight < 0) {
          bmpHeight = -bmpHeight;
          flip      = false;
        }

        // Crop area to be loaded
        x2 = x + bmpWidth  - 1; // Lower-right corner
        y2 = y + bmpHeight - 1;
        if((x2 >= 0) && (y2 >= 0)) { // On screen?
          w = bmpWidth; // Width/height of section to load/display
          h = bmpHeight;
          bx1 = by1 = 0; // UL coordinate in BMP file
          if(x < 0) { // Clip left
            bx1 = -x;
            x   = 0;
            w   = x2 + 1;
          }
          if(y < 0) { // Clip top
            by1 = -y;
            y   = 0;
            h   = y2 + 1;
          }
          if(x2 >= tft.width())  w = tft.width()  - x; // Clip right
          if(y2 >= tft.height()) h = tft.height() - y; // Clip bottom
  
          // Set TFT address window to clipped image bounds
          tft.startWrite(); // Requires start/end transaction now
          tft.setAddrWindow(x, y, w, h);
  
          for (row=0; row<h; row++) { // For each scanline...
  
            // Seek to start of scan line.  It might seem labor-
            // intensive to be doing this on every line, but this
            // method covers a lot of gritty details like cropping
            // and scanline padding.  Also, the seek only takes
            // place if the file position actually needs to change
            // (avoids a lot of cluster math in SD library).
            if(flip) // Bitmap is stored bottom-to-top order (normal BMP)
              pos = bmpImageoffset + (bmpHeight - 1 - (row + by1)) * rowSize;
            else     // Bitmap is stored top-to-bottom
              pos = bmpImageoffset + (row + by1) * rowSize;
            pos += bx1 * 3; // Factor in starting column (bx1)
            if(bmpFile.position() != pos) { // Need seek?
              tft.endWrite(); // End TFT transaction
              bmpFile.seek(pos);
              buffidx = sizeof(sdbuffer); // Force buffer reload
              tft.startWrite(); // Start new TFT transaction
            }
            for (col=0; col<w; col++) { // For each pixel...
              // Time to read more pixel data?
              if (buffidx >= sizeof(sdbuffer)) { // Indeed
                tft.endWrite(); // End TFT transaction
                bmpFile.read(sdbuffer, sizeof(sdbuffer));
                buffidx = 0; // Set index to beginning
                tft.startWrite(); // Start new TFT transaction
              }
              // Convert pixel from BMP to TFT format, push to display
              b = sdbuffer[buffidx++];
              g = sdbuffer[buffidx++];
              r = sdbuffer[buffidx++];
              tft.writePixel(tft.color565(r,g,b));
            } // end pixel
          } // end scanline
          tft.endWrite(); // End last TFT transaction
        } // end onscreen
        Serial.print(F("Loaded in "));
        Serial.print(millis() - startTime);
        Serial.println(" ms");
      } // end goodBmp
    }
  }

  bmpFile.close();
  if(!goodBmp) Serial.println(F("BMP format not recognized."));
}

void updateButtons()
{
    static int currentButton = 0;
    if(currentButton > 6) 
    {
        currentButton = 0;
        setButtons(LOW);
    }
    
    digitalWrite(buttonLedPins[currentButton], HIGH);
    currentButton++;
    delay(500);
}

void checkForPlayer()
{
    uint8_t proximityData = 0;
    //if(!(apds.readProximity(proximityData))) return;
    //Serial.println(proximityData);
    FastLED.delay(50);
    //if(proximityData > DISTANCE_MIN && proximityData <= DISTANCE_MAX)
    int buttonChoice;
    for(int i=0; i<7; i++)
    {
        bool pinVal = digitalRead(buttonInputPins[i]);
        Serial.print((pinVal) ? "1" : "0");
        if(!pinVal){
            buttonChoice = i;
            Serial.printf("Button %d was pressed\n", buttonChoice);
            setButtons(HIGH);
            drawBitmap("HELLO.BMP");
            playSound("HELLO.WAV");
            setButtons(LOW);
            game_state = PLAYER_FOUND;
            break;
        } 
    }
    //getPlayerSelection();
    //Serial.printf("Player found at distance of %d", proximityData);
    
}

void welcomePlayer()
{
    //drawBitmap("WELCOME.BMP");
    //playSound("WELCOME.WAV");
    game_state = PLACING_CANDY;
    /*int gesture = DIR_NONE;
    while(1) {
        if(apds.isGestureAvailable()) gesture = apds.readGesture();
        Serial.println(gesture);
        FastLED.delay(50);
        if(gesture == DIR_RIGHT || gesture == DIR_LEFT)
        {
            game_state = PLACING_CANDY;
            break;
        }
    }*/
    
}

void playSound(const char* filename)
{
    playSdWav1.play(filename);
    FastLED.delay(10);
    while(playSdWav1.isPlaying())
    {
        if(peak1.available())
        {
            float peak = peak1.read();
            peak *= 80;
            for(int i=0; i<BACKGROUND_LED_NUM; i++) background_leds[i] = CHSV((int)peak, 255, 255);
            FastLED.show();
        }
    }
    for(int i=0; i<BACKGROUND_LED_NUM; i++) background_leds[i] = 0x00;
    FastLED.show();
}

void setButtons(bool state)
{
    for(int i=0; i < 7; i++)
    {
        digitalWrite(buttonLedPins[i], state);
    }
}

/*void displayFrame(int frame)
{
    Serial.println(frame);
    //uint32_t *(*p)[20] = &frames;
    for(int row = 0; row < MATRIX_H; row++)
    {
        for(int col = 0; col < MATRIX_W; col++)
        {
            const uint32_t current_color = frames[frame][row * MATRIX_W + col];
            matrix_leds[XY(col, row)] = current_color;
        }
    }
}

int XY(int x, int y)
{
    int i;
    if(y & 0x01)
    {
        int reverseX = (MATRIX_W - 1) - x; 
        i = (y * MATRIX_W) + reverseX;
    } else {
        i = (y * MATRIX_W) + x;
    }
    return i;
}*/

Matrix

C/C++
#define FASTLED_ALLOW_INTERRUPTS 1
#include <FastLED.h>
#include "matrix_frames.h"

#define MATRIX_W 20
#define MATRIX_H 15
#define MATRIX_PIN 2

#define COLOR_ORDER GRB
#define CHIPSET NEOPIXEL
#define MATRIX_BRIGHTNESS 64

#define MATRIX_UPDATE_RATE 10

#define TOTAL_LEDS (MATRIX_W * MATRIX_H)

CRGB matrix_leds[300];

int currentFrame = 0;

void setup()
{
    FastLED.addLeds<CHIPSET, MATRIX_PIN>(matrix_leds, 300);
    FastLED.setBrightness(MATRIX_BRIGHTNESS);
}

void loop()
{
    updateFrameNumber();
    delay(1000 * MATRIX_UPDATE_RATE);
}

void updateFrameNumber()
{
    currentFrame++;
    if(currentFrame > 19)
    {
        currentFrame = 0;
    }
    //Serial.printf("Frame # is: %d\n", currentFrame);
    displayFrame(currentFrame);
    //currentFrame = 0;
    FastLED.show();
}

void displayFrame(int frame)
{
    Serial.println(frame);
    //uint32_t *(*p)[20] = &frames;
    for(int row = 0; row < MATRIX_H; row++)
    {
        for(int col = 0; col < MATRIX_W; col++)
        {
            const uint32_t current_color = frames[frame][row * MATRIX_W + col];
            matrix_leds[XY(col, row)] = current_color;
        }
    }
}

int XY(int x, int y)
{
    int i;
    if(y & 0x01)
    {
        int reverseX = (MATRIX_W - 1) - x; 
        i = (y * MATRIX_W) + reverseX;
    } else {
        i = (y * MATRIX_W) + x;
    }
    return i;
}

matrix_frames.h

C/C++
20 images to display on matrix
#ifndef _matrix_frames_h_
#define _matrix_frames_h_

#define frame01 {\
0x010000, 0x040200, 0x060300, 0x0b0500, 0x070500, 0x030100, 0x000000, 0x000000, 0x002b0f, 0x00852c, 0x003712, 0x000000, 0x060300, 0x1e1200, 0x342000, 0x2c1b01, 0x140d01, 0x060400, 0x020100, 0x000000, \
0x090400, 0x1c1100, 0x321e00, 0x372200, 0x412504, 0x77420f, 0x98570c, 0x5c340b, 0x0b0603, 0x003b14, 0x007928, 0x011406, 0x0e0800, 0x482a02, 0x764706, 0x905808, 0x7e4b0c, 0x311d04, 0x130b00, 0x040200, \
0x1e1200, 0x4b2e00, 0x6f4402, 0x935804, 0xc37408, 0xc07109, 0xab6211, 0xad5b23, 0xb35b2c, 0x4d2713, 0x007d29, 0x405220, 0xa05323, 0xad6510, 0xb16a0f, 0xab6b09, 0xab6b0b, 0xa76606, 0x71410c, 0x0f0900, \
0x2e1c00, 0x794803, 0xc67408, 0xc87410, 0xc46f14, 0x914e18, 0x7c401b, 0x7d4513, 0xbf7107, 0xc57702, 0x0b7c2a, 0x606a2a, 0xc4720f, 0xaf6908, 0xa8680e, 0xa86b10, 0xab6b0c, 0xa76805, 0xa16305, 0x472808, \
0x2c1c00, 0xcd7d03, 0xcf7b08, 0xe57d24, 0xb86121, 0xb76126, 0xc26d16, 0xc47506, 0xcc7d03, 0xbf6625, 0x4e6f27, 0x506625, 0x904f18, 0xb86c19, 0xab6a0d, 0xa76a12, 0xac6d10, 0xab6b0c, 0x9c600a, 0x90550e, \
0x975c00, 0xd88206, 0xf28032, 0xf58036, 0xf37d39, 0xe07532, 0xc0720a, 0xba7006, 0xc26727, 0xd26f2d, 0x9d561f, 0xa85c22, 0xd0722c, 0xba6c21, 0xae6c0b, 0xaa6b12, 0xb7731b, 0xab6b19, 0xa66811, 0x945d0a, \
0xc97b02, 0xef8228, 0xea7838, 0xf87f3c, 0xf27c3b, 0xe37a2a, 0xc17503, 0xbd7008, 0xcb7028, 0xb66722, 0xc36f25, 0xbc6f1c, 0xb86c1b, 0xb86f18, 0xbe770e, 0xbe7414, 0xa4681b, 0xb16f20, 0xac6d1a, 0x895415, \
0xcf7d03, 0xed8223, 0xfb813c, 0xf67e3c, 0xf17c37, 0xd38002, 0xcd7d02, 0xd97822, 0xbe6c25, 0xb76b21, 0xc77422, 0xb76b1e, 0xcc7329, 0xa4690c, 0xc17a09, 0xb9750d, 0x9b6217, 0xb1721a, 0xa06519, 0x9b630e, \
0xaf6217, 0xd97425, 0xd46d2f, 0xd06c31, 0xf77f3a, 0xd98208, 0xd98207, 0xec7f33, 0xbb6b26, 0xd57b2b, 0xc97227, 0xc06b2a, 0xc06b2a, 0xd3772a, 0xc67b0e, 0xb7730a, 0xc0741c, 0x9e6415, 0x9e5f1b, 0x965e0d, \
0x995a09, 0xac6212, 0xb66123, 0xe87834, 0xe27632, 0xdf7d19, 0xda820c, 0xe5812f, 0xde7d2d, 0xdb7c2c, 0xe17b31, 0xdc7830, 0xbc6c25, 0x9c5f15, 0xaa6b0e, 0xc77d09, 0xc87d0d, 0x804c18, 0xa95f21, 0x8b5409, \
0x7d4c00, 0xae6311, 0xcc6c27, 0xb96029, 0xc26629, 0xd47c11, 0xd47f0f, 0xe1812b, 0xdd7e2e, 0xc87224, 0xb46a1a, 0xb76c20, 0x9d6218, 0xa16611, 0xa76614, 0xcc800a, 0xc97f09, 0x935a0f, 0xa05f12, 0x875204, \
0x633d00, 0xad6115, 0xad5d20, 0x9d5122, 0xc8692b, 0xd17817, 0xcb7d0d, 0xdf7d2f, 0xdc7d2e, 0xce7529, 0xb96d1e, 0xb7701b, 0xb4701a, 0xa16612, 0xb66820, 0xc2780d, 0xba7509, 0xa0630d, 0x985b0d, 0x95580a, \
0x3e2600, 0x814810, 0xab5b1f, 0xa35524, 0xa15621, 0xbb6c14, 0xc57a0c, 0xbe6e27, 0xd97b2e, 0xb76825, 0xb66b1e, 0xa76714, 0x9e6315, 0x985e12, 0x8d5514, 0xa1630b, 0xb57007, 0xbe6d19, 0x995810, 0x6f3d11, \
0x1a1000, 0x2e1b02, 0xdc732f, 0x623316, 0xaf5f21, 0xaf6512, 0xc07707, 0xd8792b, 0xc67029, 0xbe6b26, 0xc16f21, 0xbe6e1e, 0xae6916, 0xbc6e1c, 0xd7762a, 0xb46816, 0xa36502, 0x9a5811, 0x673b0b, 0x040200, \
0x040200, 0x080500, 0x3f210f, 0xa65528, 0xaf592b, 0xa95b1f, 0xc47508, 0xcf8006, 0x92580e, 0x975a11, 0x975911, 0x91570e, 0x8f5211, 0x81461a, 0xbc632b, 0xa65f13, 0x965c02, 0x070500, 0x010100, 0x000000\
}

#define frame02 {\
0x010000, 0x040200, 0x060300, 0x0b0500, 0x070500, 0x030100, 0x000000, 0x000000, 0x002b0f, 0x00852c, 0x003712, 0x000000, 0x060300, 0x1e1200, 0x342000, 0x2c1b01, 0x140d01, 0x060400, 0x020100, 0x000000, \
0x090400, 0x1c1100, 0x321e00, 0x372200, 0x412504, 0x77420f, 0x98570c, 0x5c340b, 0x0b0603, 0x003b14, 0x007928, 0x011406, 0x0e0800, 0x482a02, 0x764706, 0x905808, 0x7e4b0c, 0x311d04, 0x130b00, 0x040200, \
0x1e1200, 0x4b2e00, 0x6f4402, 0x935804, 0xc37408, 0xc07109, 0xab6211, 0xad5b23, 0xb35b2c, 0x4d2713, 0x007d29, 0x405220, 0xa05323, 0xad6510, 0xb16a0f, 0xab6b09, 0xab6b0b, 0xa76606, 0x71410c, 0x0f0900, \
0x2e1c00, 0x794803, 0xc67408, 0xc87410, 0xc46f14, 0x914e18, 0x7c401b, 0x7d4513, 0xbf7107, 0xc57702, 0x0b7c2a, 0x606a2a, 0xc4720f, 0xaf6908, 0xa8680e, 0xa86b10, 0xab6b0c, 0xa76805, 0xa16305, 0x472808, \
0x2c1c00, 0xcd7d03, 0xcf7b08, 0xe57d24, 0xb86121, 0xb76126, 0xc26d16, 0xc47506, 0xcc7d03, 0xbf6625, 0x4e6f27, 0x506625, 0x904f18, 0xb86c19, 0xab6a0d, 0xa76a12, 0xac6d10, 0xab6b0c, 0x9c600a, 0x90550e, \
0x975c00, 0xd88206, 0xf28032, 0xf58036, 0xf37d39, 0xe07532, 0xc0720a, 0xba7006, 0xc26727, 0xd26f2d, 0x9d561f, 0xa85c22, 0xd0722c, 0xba6c21, 0xae6c0b, 0xaa6b12, 0xb7731b, 0xab6b19, 0xa66811, 0x945d0a, \
0xc97b02, 0xef8228, 0xea7838, 0xf87f3c, 0xf27c3b, 0xe37a2a, 0xc17503, 0xbd7008, 0xcb7028, 0xb66722, 0xc36f25, 0xbc6f1c, 0xb86c1b, 0xb86f18, 0xbe770e, 0xbe7414, 0xa4681b, 0xb16f20, 0xac6d1a, 0x895415, \
0xcf7d03, 0xed8223, 0xfb813c, 0xf67e3c, 0xf17c37, 0xd38002, 0xcd7d02, 0xd97822, 0xbe6c25, 0xb76b21, 0xc77422, 0xb76b1e, 0xcc7329, 0xa4690c, 0xc17a09, 0xb9750d, 0x9b6217, 0xb1721a, 0xa06519, 0x9b630e, \
0xaf6217, 0xd97425, 0xd46d2f, 0xd06c31, 0xf77f3a, 0xd98208, 0xd98207, 0xec7f33, 0xbb6b26, 0xd57b2b, 0xc97227, 0xc06b2a, 0xc06b2a, 0xd3772a, 0xc67b0e, 0xb7730a, 0xc0741c, 0x9e6415, 0x9e5f1b, 0x965e0d, \
0x995a09, 0xac6212, 0xb66123, 0xe87834, 0xe27632, 0xdf7d19, 0xda820c, 0xe5812f, 0xde7d2d, 0xdb7c2c, 0xe17b31, 0xdc7830, 0xbc6c25, 0x9c5f15, 0xaa6b0e, 0xc77d09, 0xc87d0d, 0x804c18, 0xa95f21, 0x8b5409, \
0x7d4c00, 0xae6311, 0xcc6c27, 0xb96029, 0xc26629, 0xd47c11, 0xd47f0f, 0xe1812b, 0xdd7e2e, 0xc87224, 0xb46a1a, 0xb76c20, 0x9d6218, 0xa16611, 0xa76614, 0xcc800a, 0xc97f09, 0x935a0f, 0xa05f12, 0x875204, \
0x633d00, 0xad6115, 0xad5d20, 0x9d5122, 0xc8692b, 0xd17817, 0xcb7d0d, 0xdf7d2f, 0xdc7d2e, 0xce7529, 0xb96d1e, 0xb7701b, 0xb4701a, 0xa16612, 0xb66820, 0xc2780d, 0xba7509, 0xa0630d, 0x985b0d, 0x95580a, \
0x3e2600, 0x814810, 0xab5b1f, 0xa35524, 0xa15621, 0xbb6c14, 0xc57a0c, 0xbe6e27, 0xd97b2e, 0xb76825, 0xb66b1e, 0xa76714, 0x9e6315, 0x985e12, 0x8d5514, 0xa1630b, 0xb57007, 0xbe6d19, 0x995810, 0x6f3d11, \
0x1a1000, 0x2e1b02, 0xdc732f, 0x623316, 0xaf5f21, 0xaf6512, 0xc07707, 0xd8792b, 0xc67029, 0xbe6b26, 0xc16f21, 0xbe6e1e, 0xae6916, 0xbc6e1c, 0xd7762a, 0xb46816, 0xa36502, 0x9a5811, 0x673b0b, 0x040200, \
0x040200, 0x080500, 0x3f210f, 0xa65528, 0xaf592b, 0xa95b1f, 0xc47508, 0xcf8006, 0x92580e, 0x975a11, 0x975911, 0x91570e, 0x8f5211, 0x81461a, 0xbc632b, 0xa65f13, 0x965c02, 0x070500, 0x010100, 0x000000\
}

#define frame03 {\
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0xd64600, 0xd64600, 0xd64600, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, \
0x000000, 0xd64600, 0x000000, 0xd64600, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0xd64600, 0x000000, 0x000000, 0xd64600, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, \
0x000000, 0xd64600, 0xd64600, 0xd64600, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0xd64600, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0xd64600, 0xd64600, 0x000000, 0xd64600, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0xd64600, 0xd64600, 0xd64600, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0xd64600, 0xd64600, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0xd64600, 0xd64600, 0xd64600, 0x000000, 0x000000, 0xd64600, 0xd64600, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0xd64600, 0xd64600, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000\
}

#define frame04 {\
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0xd64600, 0xd64600, 0xd64600, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0xd64600, 0xd64600, 0xd64600, 0xd64600, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0xd64600, 0xd64600, 0xd64600, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0xd64600, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, 0xd64600, 0xd64600, 0x000000, 0x000000, 0xd64600, 0xd64600, 0xd64600, 0xd64600, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0xd64600, 0x000000, 0x000000, 0xd64600, 0x000000, 0xd64600, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0xd64600, 0xd64600, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0xd64600, 0xd64600, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0xd64600, 0x000000, 0x000000, 0xd64600, 0xd64600, 0xd64600, 0xd64600, 0x000000, 0x000000, 0x000000\
}

#define frame05 {\
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000101, 0x1b3f59, 0x3a89c0, 0x4bb3fb, 0x4cb5fe, 0x4cb5fe, 0x47a9ed, 0x3072a0, 0x0d1e2a, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x060d13, 0x3987bd, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4bb2fa, 0x235375, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x03070a, 0x3d92cd, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x275c81, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x2b668f, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0xfbfbfb, 0xfbfbfb, 0x4cb5fe, 0x4cb5fe, 0x4cb4fd, 0x0f2433, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x071017, 0x4ab1f8, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0xfbfbfb, 0xfbfbfb, 0x4cb5fe, 0x4cb5fe, 0xfbfbfb, 0xfbfbfb, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x357fb2, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x1d4662, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0xfbfbfb, 0xfbfbfb, 0x4cb5fe, 0x4cb5fe, 0xfbfbfb, 0xfbfbfb, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4bb1f9, 0x04090c, 0x000000, 0x000000, \
0x000000, 0x000000, 0x2a658d, 0x4cb5fe, 0x4cb5fe, 0xfbfbfb, 0xfbfbfb, 0xfbfbfb, 0xfbfbfb, 0x4cb5fe, 0xfbfbfb, 0xfbfbfb, 0xfbfbfb, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x0e212e, 0x000000, 0x000000, \
0x000000, 0x000000, 0x2e6e9a, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0xfbfbfb, 0xfbfbfb, 0xfbfbfb, 0xfbfbfb, 0xfbfbfb, 0xfbfbfb, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x112839, 0x000000, 0x000000, \
0x000000, 0x000000, 0x265b7f, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0xfbfbfb, 0xfbfbfb, 0xfbfbfb, 0x4cb5fe, 0xfbfbfb, 0xfbfbfb, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x0a1822, 0x000000, 0x000000, \
0x000000, 0x000000, 0x142f42, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0xfbfbfb, 0xfbfbfb, 0x4cb5fe, 0x4cb5fe, 0xfbfbfb, 0xfbfbfb, 0xfbfbfb, 0xfbfbfb, 0x4cb5fe, 0x45a4e6, 0x000101, 0x000000, 0x000000, \
0x000000, 0x000000, 0x010304, 0x419bd9, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0xfbfbfb, 0xfbfbfb, 0x4cb5fe, 0x4cb5fe, 0xfbfbfb, 0xfbfbfb, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x275d82, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x16354a, 0x4cb4fd, 0x4cb5fe, 0x4cb5fe, 0xfbfbfb, 0xfbfbfb, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x439fdf, 0x040a0e, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x225273, 0x4cb4fd, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x45a5e7, 0x0d202d, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x183951, 0x43a0e0, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x4cb5fe, 0x3782b6, 0x09151d, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x020608, 0x193c54, 0x2d6c97, 0x3782b6, 0x347cae, 0x275d82, 0x0f2433, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000\
}

#define frame06 {\
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, \
0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, \
0x000000, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, \
0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, \
0x000000, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x61bdf0, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000\
}

#define frame07 {\
0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x000000, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000\
}

#define frame08 {\
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, \
0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x000000, \
0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x000000, \
0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x000000, \
0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x000000, \
0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, \
0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, \
0x000000, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, \
0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x61bdf0, 0x000000, 0x61bdf0, 0x000000, 0x000000, 0x000000, 0x61bdf0, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000\
}

#define frame09 {\
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0xd14f00, 0xc91111, 0xc91111, 0xc91111, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0xd14f00, 0xd14f00, 0xd14f00, 0xd14f00, 0xd14f00, 0xd14f00, 0xc91111, 0xc91111, 0xc91111, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0xd14f00, 0xd14f00, 0xd14f00, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xd14f00, 0xd14f00, 0xc91111, 0xc91111, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0xd14f00, 0xd14f00, 0xd81919, 0xd81919, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xd14f00, 0xd14f00, 0xd14f00, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0xca4c00, 0xd14f00, 0xd81919, 0xd81919, 0xd81919, 0xd81919, 0xd81919, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xd14f00, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0xd14f00, 0xfce024, 0xfce024, 0xd81919, 0xd81919, 0xd81919, 0xd81919, 0xd81919, 0xd81919, 0xd81919, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xd14f00, 0x000000, \
0x000000, 0x000000, 0x000000, 0xca4c00, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xd81919, 0xd81919, 0xd81919, 0xd81919, 0xd81919, 0xd81919, 0xd81919, 0xfce024, 0xfce024, 0xfce024, 0xd14f00, 0x000000, \
0xd14f00, 0x000000, 0x000000, 0xd14f00, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xd81919, 0xd81919, 0xd81919, 0xd81919, 0xd81919, 0xd81919, 0xfce024, 0xd14f00, 0xd14f00, 0x000000, \
0xd14f00, 0xd14f00, 0xd14f00, 0xca4c00, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xd81919, 0xd81919, 0xd81919, 0xd81919, 0xd81919, 0xd14f00, 0xd14f00, 0x000000, 0x000000, \
0xd14f00, 0xc91111, 0xc91111, 0xd14f00, 0xca4c00, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xd81919, 0xd81919, 0xd14f00, 0xd14f00, 0x000000, 0x000000, 0x000000, 0x000000, \
0xd14f00, 0xc91111, 0xc91111, 0xc91111, 0xd14f00, 0xd14f00, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xd14f00, 0xd14f00, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0xd14f00, 0xc91111, 0xc91111, 0xc91111, 0xc91111, 0xd14f00, 0xd14f00, 0xfce024, 0xfce024, 0xfce024, 0xfce024, 0xd14f00, 0xd14f00, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0xd14f00, 0xc91111, 0xc91111, 0xc91111, 0xc91111, 0xd14f00, 0xd14f00, 0xd14f00, 0xd14f00, 0xd14f00, 0xd14f00, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0xd14f00, 0xc91111, 0xc91111, 0xc91111, 0xc91111, 0xd14f00, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0xd14f00, 0xd14f00, 0xd14f00, 0xd14f00, 0xd14f00, 0xd14f00, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000\
}

#define frame10 {\
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x59d100, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x59d100, \
0x966be5, 0x966be5, 0x000000, 0x000000, 0x000000, 0x966be5, 0x966be5, 0x966be5, 0x59d100, 0x59d100, 0x966be5, 0x966be5, 0x59d100, 0x59d100, 0x59d100, 0x000000, 0x000000, 0x000000, 0x59d100, 0x59d100, \
0x59d100, 0x966be5, 0x59d100, 0x000000, 0x59d100, 0x966be5, 0x966be5, 0x966be5, 0x59d100, 0x59d100, 0x966be5, 0x966be5, 0x966be5, 0x59d100, 0x59d100, 0x59d100, 0x000000, 0x966be5, 0x966be5, 0x59d100, \
0x59d100, 0x966be5, 0x966be5, 0x59d100, 0x59d100, 0x59d100, 0x966be5, 0x966be5, 0x59d100, 0x59d100, 0x59d100, 0x966be5, 0x966be5, 0x59d100, 0x59d100, 0x59d100, 0x59d100, 0x59d100, 0x966be5, 0x59d100, \
0x59d100, 0x59d100, 0x966be5, 0x59d100, 0x59d100, 0x59d100, 0x966be5, 0x966be5, 0x59d100, 0x59d100, 0x59d100, 0x966be5, 0x966be5, 0x59d100, 0x59d100, 0x59d100, 0x59d100, 0x59d100, 0x966be5, 0x966be5, \
0x59d100, 0x59d100, 0x966be5, 0x59d100, 0x59d100, 0x59d100, 0x59d100, 0x966be5, 0x966be5, 0x59d100, 0x59d100, 0x59d100, 0x966be5, 0x966be5, 0x59d100, 0x59d100, 0x59d100, 0x59d100, 0x59d100, 0x966be5, \
0x59d100, 0x59d100, 0x000000, 0x000000, 0x59d100, 0x59d100, 0x59d100, 0x966be5, 0x966be5, 0x59d100, 0x59d100, 0x59d100, 0x966be5, 0x966be5, 0x59d100, 0x59d100, 0x000000, 0x000000, 0x59d100, 0x966be5, \
0x59d100, 0x000000, 0x000000, 0x000000, 0x000000, 0x59d100, 0x59d100, 0x966be5, 0x966be5, 0x59d100, 0x59d100, 0x59d100, 0x966be5, 0x966be5, 0x59d100, 0x000000, 0x000000, 0x000000, 0x000000, 0x59d100, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000\
}

#define frame11 {\
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x19ff80, 0x19ff80, 0x000000, 0x000000, 0x19ff80, 0x000000, 0x000000, 0x19ff80, 0x000000, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x19ff80, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x19ff80, \
0x19ff80, 0x000000, 0x000000, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x19ff80, 0x000000, 0x19ff80, 0x000000, \
0x19ff80, 0x000000, 0x000000, 0x000000, 0x19ff80, 0x19ff80, 0x19ff80, 0x000000, 0x19ff80, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x000000, \
0x19ff80, 0x000000, 0x000000, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x000000, \
0x19ff80, 0x000000, 0x000000, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x000000, \
0x19ff80, 0x000000, 0x000000, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x000000, 0x19ff80, 0x000000, \
0x000000, 0x19ff80, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x000000, 0x000000, 0x19ff80, 0x000000, 0x19ff80, 0x19ff80, 0x19ff80, 0x000000, 0x000000, 0x19ff80, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000\
}

#define frame12 {\
0x0d0d0d, 0x191919, 0x161616, 0x0a0a0a, 0x020202, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x030303, 0x0c0c0c, 0x1c1c1c, 0x232323, 0x1e1e1e, \
0x3e3e3e, 0x5a5a5a, 0x515151, 0x303030, 0x0e0e0e, 0x020202, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x010101, 0x0c0c0c, 0x2a2a29, 0x434344, 0x4c4d4c, 0x464646, \
0x747474, 0x959595, 0x818181, 0x575757, 0x2e2c2c, 0x151615, 0x0e100f, 0x0f100e, 0x101012, 0x060607, 0x020102, 0x000100, 0x000000, 0x000000, 0x7b7c7a, 0x9b9b9b, 0xafaeaf, 0xb9bab9, 0xbebcbe, 0xbdbebd, \
0x828282, 0xdcdddc, 0xdfdfdf, 0xdedfdd, 0xdad9d9, 0xb6b5b4, 0xa2a1a4, 0x8f8f8e, 0x413f41, 0x1d1c1f, 0x121412, 0x0d0e0f, 0x0c0b0b, 0x626464, 0x9a9b9b, 0xcdcece, 0xdadcdb, 0xdededf, 0xdfdfdf, 0xc0c1c1, \
0x555555, 0xd9d9d9, 0xdfddde, 0xe0e1e2, 0xe3e3e3, 0xe0e1e0, 0x7e7f7e, 0x8a8e8c, 0x949294, 0x8c8b8e, 0x858588, 0x828282, 0x7e7f81, 0x9b9b9b, 0xc2c2c3, 0xdbdbdc, 0xe2e2e2, 0xe3e4e3, 0xe3e3e3, 0xbcbbbc, \
0x1c1c1c, 0x3f3e3e, 0xc8cac9, 0xdedcdc, 0xe2e3e3, 0xe4e4e4, 0xd1d2d1, 0xcfcfce, 0xd2d0d1, 0xd1d1d1, 0xcdcece, 0xcbcdcb, 0xcbcbca, 0xd1cece, 0xdad8da, 0xe1e2e3, 0xe4e4e4, 0xe4e4e4, 0x555555, 0x1e1e1e, \
0x171717, 0x323232, 0xc5c6c7, 0xdedede, 0xe4e3e3, 0xe4e4e4, 0xe3e4e3, 0xdedfe0, 0xdddedd, 0xdbdcda, 0xdbdbdb, 0xdddcdb, 0xdedddd, 0xdfdede, 0xe1e1e1, 0xe3e3e3, 0xe4e4e4, 0xe4e4e4, 0x454646, 0x080908, \
0x4c4c4c, 0xd5d5d4, 0xdfdfde, 0xe4e4e3, 0xe3e3e3, 0xe3e3e3, 0xc6c8c8, 0xb5b4b5, 0xb3b2b0, 0xb4b2b2, 0xb6b6b6, 0xbbb8ba, 0xbebdbc, 0xbdbebe, 0xd0cfcf, 0xdcdcdd, 0xe2e1e2, 0xe2e4e3, 0xcbcecc, 0xa6a5a6, \
0x737373, 0xdbdbdb, 0xdfdfdf, 0xdddddd, 0xd6d6d8, 0x838381, 0x585a5a, 0x545251, 0x555655, 0x5a5a5a, 0x5f6060, 0x636363, 0x676665, 0x8a8b89, 0xa9a9a8, 0xcecdce, 0xdededf, 0xe3e4e4, 0xe4e4e4, 0xbfbfbf, \
0x717171, 0x969696, 0x9c9d9d, 0x757575, 0x464646, 0x3e3d3d, 0x383a39, 0x363636, 0x323332, 0x313032, 0x313031, 0x323333, 0x2f3231, 0x393b39, 0x7d7f7d, 0xb6b5b5, 0xc8c8c8, 0xc9c8c9, 0xc6c6c8, 0xbfbfc1, \
0x494949, 0x696969, 0x696969, 0x424242, 0x1d1d1d, 0x1e1f1f, 0x242323, 0x1f1f1f, 0x151615, 0x0e0f0e, 0x0b0c0b, 0x0c0b0c, 0x0b0b0c, 0x09090a, 0x2b2b2a, 0x504f4e, 0x656565, 0x6d6d6b, 0x6c6b6b, 0x5d5d5c, \
0x1a1a1a, 0x2f2f2f, 0x2a2a2a, 0x131313, 0x030303, 0x050505, 0x060606, 0x050505, 0x030303, 0x010101, 0x000000, 0x010101, 0x010101, 0x010101, 0x070707, 0x191918, 0x2b2c2b, 0x3e3e3e, 0x474848, 0x383838, \
0x040404, 0x060606, 0x050505, 0x020202, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x010101, 0x030303, 0x070707, 0x0e0e0e, 0x121212, 0x0e0e0e, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x010101, 0x010101, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000\
}

#define frame13 {\
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x020202, 0x070707, 0x101010, 0x161616, 0x101010, 0x0c0c0c, 0x070707, 0x040404, 0x010101, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x010101, 0x0c0c0c, 0x2c2c2c, 0x525252, 0x6d6d6d, 0x808080, 0x888888, 0x767676, 0x646464, 0x4c4c4c, 0x393939, 0x161616, 0x020202, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x040404, 0x1f1f1f, 0x606060, 0x999999, 0xb8b8b8, 0xcbcbcb, 0xd2d2d2, 0xd1d1d1, 0xc6c6c6, 0xb7b7b7, 0xa4a4a4, 0x868686, 0x5b5b5b, 0x181818, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x010101, 0x1e1e1e, 0x6c6c6c, 0xaeaeae, 0xc5c5c5, 0x1b1b1b, 0x1d1d1d, 0xe1e1e1, 0xe1e1e1, 0xd8d8d8, 0x1d1d1d, 0x1b1b1b, 0xa7a7a7, 0x868686, 0x434343, 0x060606, 0x000000, 0x000000, 0x000000, \
0x000000, 0x040404, 0x4f4f4f, 0x989898, 0xbcbcbc, 0x0a0a0a, 0x0b0b0b, 0x040404, 0x0b0b0b, 0xe6e6e6, 0x0b0b0b, 0x000000, 0x040404, 0x0a0a0a, 0x9a9a9a, 0x595959, 0x060606, 0x000000, 0x000000, 0x000000, \
0x000000, 0x0c0c0c, 0x6a6a6a, 0xa6a6a6, 0xcecece, 0x040404, 0x040404, 0x0b0b0b, 0x0b0b0b, 0xe6e6e6, 0x0b0b0b, 0x040404, 0x040404, 0x010101, 0xa5a5a5, 0x727272, 0x0e0e0e, 0x030303, 0x000000, 0x000000, \
0x000000, 0x0f0f0f, 0x7e7e7e, 0xc1c1c1, 0xd9d9d9, 0xcecece, 0x0b0b0b, 0x0b0b0b, 0xcecece, 0xe7e7e7, 0xcecece, 0x0b0b0b, 0x0b0b0b, 0xcecece, 0xaaaaaa, 0x7a7a7a, 0x151515, 0x060606, 0x000000, 0x000000, \
0x000000, 0x121212, 0x939393, 0xc2c2c2, 0xd6d6d6, 0xe4e4e4, 0xe7e7e7, 0xe6e6e6, 0xe8e8e8, 0x202020, 0xeaeaea, 0xe5e5e5, 0xe0e0e0, 0xc4c4c4, 0xa0a0a0, 0x7d7d7d, 0x151515, 0x040404, 0x000000, 0x000000, \
0x000000, 0x0b0b0b, 0x878787, 0xadadad, 0xc1c1c1, 0xdadada, 0xe6e6e6, 0xe8e8e8, 0x202020, 0x202020, 0x202020, 0xe3e3e3, 0xd9d9d9, 0xbdbdbd, 0xa5a5a5, 0x7b7b7b, 0x060606, 0x010101, 0x000000, 0x000000, \
0x000000, 0x030303, 0x191919, 0x999999, 0xbcbcbc, 0xd2d2d2, 0xe5e5e5, 0xe6e6e6, 0x161616, 0x202020, 0x161616, 0xdbdbdb, 0xd2d2d2, 0xc3c3c3, 0xa1a1a1, 0x232323, 0x070707, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x020202, 0x0c0c0c, 0x3b3b3b, 0xc5c5c5, 0xd8d8d8, 0xdfdfdf, 0xa1a1a1, 0xa1a1a1, 0xa1a1a1, 0xd2d2d2, 0xc3c3c3, 0xaeaeae, 0x0e0e0e, 0x040404, 0x020202, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x080808, 0x0e0e0e, 0x404040, 0xcfcfcf, 0xd7d7d7, 0xdedede, 0xd9d9d9, 0xd9d9d9, 0xc9c9c9, 0xacacac, 0x101010, 0x050505, 0x030303, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x020202, 0x0b0b0b, 0x2d2d2d, 0xb6b6b6, 0x1b1b1b, 0xc9c9c9, 0x1b1b1b, 0xc0c0c0, 0x161616, 0x747474, 0x060606, 0x050505, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x010101, 0x070707, 0x898989, 0x161616, 0xa1a1a1, 0x161616, 0x939393, 0x111111, 0x646464, 0x090909, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x080808, 0x565656, 0x6b6b6b, 0x6f6f6f, 0x707070, 0x6c6c6c, 0x656565, 0x3c3c3c, 0x030303, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000\
}

#define frame14 {\
0x010000, 0x040200, 0x060300, 0x0b0500, 0x070500, 0x030100, 0x000000, 0x000000, 0x002b0f, 0x00852c, 0x003712, 0x000000, 0x060300, 0x1e1200, 0x342000, 0x2c1b01, 0x140d01, 0x060400, 0x020100, 0x000000, \
0x090400, 0x1c1100, 0x321e00, 0x372200, 0x412504, 0x77420f, 0x98570c, 0x5c340b, 0x0b0603, 0x003b14, 0x007928, 0x011406, 0x0e0800, 0x482a02, 0x764706, 0x905808, 0x7e4b0c, 0x311d04, 0x130b00, 0x040200, \
0x1e1200, 0x4b2e00, 0x6f4402, 0x935804, 0x1d1101, 0x1d1101, 0x190f03, 0xad5b23, 0xb35b2c, 0x4d2713, 0x007d29, 0x405220, 0xa05323, 0xad6510, 0x1a1002, 0x191001, 0x191002, 0x190f01, 0x71410c, 0x0f0900, \
0x2e1c00, 0x794803, 0xc67408, 0xc87410, 0xc46f14, 0x914e18, 0x7c401b, 0x130a03, 0x1c1101, 0xc57702, 0x0b7c2a, 0x606a2a, 0xc4720f, 0x1a1001, 0xa8680e, 0xa86b10, 0xab6b0c, 0xa76805, 0xa16305, 0x472808, \
0x2c1c00, 0xcd7d03, 0xcf7b08, 0xe57d24, 0xb86121, 0xb76126, 0x0b0601, 0xc47506, 0xcc7d03, 0xbf6625, 0x4e6f27, 0x506625, 0x904f18, 0xb86c19, 0xab6a0d, 0x191003, 0xac6d10, 0xab6b0c, 0x9c600a, 0x90550e, \
0x975c00, 0xd88206, 0xf28032, 0xf58036, 0xf37d39, 0x1f1007, 0x1d1101, 0x1c1101, 0xc26727, 0xd26f2d, 0x9d561f, 0xa85c22, 0xd0722c, 0xba6c21, 0x1a1002, 0x191003, 0x1b1104, 0xab6b19, 0xa66811, 0x945d0a, \
0xc97b02, 0xef8228, 0xea7838, 0xf87f3c, 0x0d0703, 0x0d0702, 0xec8d01, 0x1c1101, 0x1e1106, 0xb66722, 0xc36f25, 0x1c1104, 0xb86c1b, 0x1b1104, 0x1c1202, 0xec8d01, 0x180f04, 0x1a1105, 0xac6d1a, 0x895415, \
0xcf7d03, 0xed8223, 0xfb813c, 0xf67e3c, 0x0d0703, 0xec8c01, 0xfaeb06, 0xc24101, 0x1c1006, 0xb76b21, 0x1e1105, 0x1b1004, 0xcc7329, 0x040200, 0xec8d01, 0xddcf05, 0xc24101, 0x1a1104, 0xa06519, 0x9b630e, \
0xaf6217, 0xd97425, 0xd46d2f, 0xd06c31, 0xf77f3a, 0xd98208, 0xd98207, 0xec7f33, 0xbb6b26, 0x201206, 0x1e1106, 0x1d1006, 0xc06b2a, 0xd3772a, 0xc67b0e, 0xb7730a, 0xc0741c, 0x9e6415, 0x9e5f1b, 0x965e0d, \
0x995a09, 0xac6212, 0xb66123, 0xe87834, 0xe27632, 0xdf7d19, 0xda820c, 0xe5812f, 0xde7d2d, 0xdb7c2c, 0xe17b31, 0xdc7830, 0xbc6c25, 0x9c5f15, 0xaa6b0e, 0xc77d09, 0xc87d0d, 0x804c18, 0xa95f21, 0x8b5409, \
0x7d4c00, 0xae6311, 0x1e1006, 0x1c0e06, 0xc26629, 0x201203, 0x201302, 0xe1812b, 0xdd7e2e, 0x040301, 0x1b1004, 0xb76c20, 0x170f04, 0x180f03, 0x040200, 0xcc800a, 0xc97f09, 0x030200, 0x180e03, 0x875204, \
0x633d00, 0xad6115, 0x1a0e05, 0x170c05, 0x1e1006, 0x1f1203, 0x1e1302, 0xdf7d2f, 0x211307, 0x050301, 0x1c1004, 0xb7701b, 0x040301, 0x180f03, 0x040201, 0xc2780d, 0x1c1101, 0x040200, 0x985b0d, 0x95580a, \
0x3e2600, 0x130b02, 0x190e05, 0xa35524, 0xa42401, 0xa52400, 0x040300, 0x1c1006, 0x201207, 0x1b0f06, 0xa52401, 0x190f03, 0x180f03, 0x985e12, 0x030200, 0x040200, 0x040300, 0xa52401, 0x995810, 0x6f3d11, \
0x1a1000, 0x070400, 0x211107, 0x623316, 0xaf5f21, 0xbb3103, 0xa52500, 0xa62501, 0x1e1106, 0xbe6b26, 0xc16f21, 0xa52401, 0x040200, 0xbc6e1c, 0xd7762a, 0x040200, 0x180f00, 0xbc2900, 0x673b0b, 0x040200, \
0x040200, 0x080500, 0x090502, 0x190d06, 0xaf592b, 0xa95b1f, 0xc47508, 0xc03501, 0x92580e, 0x975a11, 0x975911, 0xb62f02, 0x150c03, 0x81461a, 0xbc632b, 0x190e03, 0xb73000, 0x070500, 0x010100, 0x000000\
}

#define frame15 {\
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x030101, 0x030101, 0x030101, 0x000000, 0x000000, 0x000000, 0x030101, 0x030101, 0x030101, 0x030101, 0x030101, 0x060202, 0x030101, 0x030101, 0x030101, 0x030101, 0x000000, 0x000000, 0x000000, \
0x030101, 0xca3e3e, 0xca3e3e, 0x060202, 0x030101, 0xca3e3e, 0x030101, 0x060202, 0xca3e3e, 0x030101, 0x060202, 0xca3e3e, 0x060202, 0xca3e3e, 0xca3e3e, 0xca3e3e, 0x030101, 0xca3e3e, 0x030101, 0xca3e3e, \
0xca3e3e, 0x060202, 0x030101, 0x060202, 0xca3e3e, 0x030101, 0xca3e3e, 0x060202, 0xca3e3e, 0xca3e3e, 0x060202, 0xca3e3e, 0x060202, 0xca3e3e, 0x030101, 0xca3e3e, 0xca3e3e, 0x060202, 0xca3e3e, 0x030101, \
0xca3e3e, 0x030101, 0x000000, 0x030101, 0xca3e3e, 0xca3e3e, 0xca3e3e, 0x060202, 0xca3e3e, 0xca3e3e, 0x060202, 0xca3e3e, 0x060202, 0xca3e3e, 0x030101, 0x030101, 0xca3e3e, 0x060202, 0xca3e3e, 0x030101, \
0xca3e3e, 0x030101, 0x000000, 0x030101, 0xca3e3e, 0x030101, 0xca3e3e, 0x060202, 0xca3e3e, 0x060202, 0xca3e3e, 0xca3e3e, 0x060202, 0xca3e3e, 0x030101, 0x030101, 0xca3e3e, 0x060202, 0xca3e3e, 0x030101, \
0xca3e3e, 0x030101, 0x000000, 0x030101, 0xca3e3e, 0x030101, 0xca3e3e, 0x060202, 0xca3e3e, 0x060202, 0xca3e3e, 0xca3e3e, 0x060202, 0xca3e3e, 0x030101, 0x030101, 0xca3e3e, 0x060202, 0xca3e3e, 0x030101, \
0xca3e3e, 0x060202, 0x030101, 0x060202, 0xca3e3e, 0x030101, 0xca3e3e, 0x060202, 0xca3e3e, 0x060202, 0x030101, 0xca3e3e, 0x060202, 0xca3e3e, 0x030101, 0xca3e3e, 0x030101, 0x060202, 0xca3e3e, 0x030101, \
0x030101, 0xca3e3e, 0xca3e3e, 0x060202, 0xca3e3e, 0x030101, 0xca3e3e, 0x060202, 0xca3e3e, 0x030101, 0x030101, 0xca3e3e, 0x060202, 0xca3e3e, 0xca3e3e, 0xca3e3e, 0x030101, 0x030101, 0xca3e3e, 0x030101, \
0x000000, 0x030101, 0x030101, 0x060202, 0x030101, 0x030101, 0x030101, 0x060202, 0x030101, 0x030101, 0x030101, 0x030101, 0x060202, 0x030101, 0x030101, 0x030101, 0x030101, 0x030101, 0x030101, 0x030101, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000\
}

#define frame16 {\
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0xcf0707, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0xcf0707, 0x000000, 0x000000, 0x000000, \
0x000000, 0xcf0707, 0xcf0707, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0xcf0707, 0xcf0707, 0x000000, 0x000000, 0x000000, \
0x000000, 0xcf0707, 0xcf0707, 0xcf0707, 0xcf0707, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0xcf0707, 0xcf0707, 0xcf0707, 0xcf0707, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0xcf0707, 0xcf0707, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0xcf0707, 0xcf0707, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0xcf0707, 0xcf0707, 0x000000, 0x000000, 0xcf0707, 0xcf0707, 0x000000, 0x000000, 0xcf0707, 0xcf0707, 0x000000, 0x000000, 0xcf0707, 0xcf0707, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0xcf0707, 0xcf0707, 0x000000, 0xcf0707, 0xcf0707, 0x000000, 0x000000, 0xcf0707, 0xcf0707, 0x000000, 0xcf0707, 0xcf0707, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0xcf0707, 0xcf0707, 0xcf0707, 0x000000, 0x000000, 0x000000, 0x000000, 0xcf0707, 0xcf0707, 0xcf0707, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x212121, 0x000000, 0x000000, 0x212121, 0x000000, 0x000000, 0x212121, 0x212121, 0x212121, 0x000000, 0x000000, 0x212121, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x212121, 0x212121, 0x212121, 0x212121, 0x212121, 0x000000, 0x212121, 0x212121, 0x212121, 0x212121, 0x212121, 0x212121, 0x212121, 0x000000, 0x212121, 0x212121, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x212121, 0x212121, 0x212121, 0x212121, 0x212121, 0x212121, 0x212121, 0x212121, 0x000000, 0x000000, 0x212121, 0x212121, 0x212121, 0x212121, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x212121, 0x212121, 0x000000, 0x212121, 0x212121, 0x212121, 0x000000, 0x212121, 0x000000, 0x000000, 0x000000, 0x212121, 0x212121, 0x000000, 0x212121, 0x212121, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000\
}

#define frame17 {\
0x072707, 0x072707, 0x072707, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x072707, 0x072707, 0x072707, 0x000000, 0x000000, \
0x072707, 0x24c024, 0x072707, 0x072707, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x072707, 0x072707, 0x24c024, 0x072707, 0x000000, 0x000000, \
0x072707, 0x24c024, 0x24c024, 0x072707, 0x072707, 0x072707, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x072707, 0x072707, 0x072707, 0x24c024, 0x24c024, 0x072707, 0x000000, 0x000000, \
0x072707, 0x24c024, 0x24c024, 0x24c024, 0x24c024, 0x072707, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x072707, 0x24c024, 0x24c024, 0x24c024, 0x24c024, 0x072707, 0x000000, 0x000000, \
0x072707, 0x072707, 0x24c024, 0x24c024, 0x000000, 0x000000, 0x072707, 0x072707, 0x072707, 0x072707, 0x072707, 0x072707, 0x000000, 0x000000, 0x24c024, 0x24c024, 0x072707, 0x072707, 0x000000, 0x000000, \
0x000000, 0x072707, 0x24c024, 0x24c024, 0x000000, 0x000000, 0x24c024, 0x24c024, 0x072707, 0x072707, 0x24c024, 0x24c024, 0x000000, 0x000000, 0x24c024, 0x24c024, 0x072707, 0x000000, 0x000000, 0x000000, \
0x000000, 0x072707, 0x072707, 0x24c024, 0x24c024, 0x000000, 0x24c024, 0x24c024, 0x072707, 0x072707, 0x24c024, 0x24c024, 0x000000, 0x24c024, 0x24c024, 0x072707, 0x072707, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x072707, 0x072707, 0x24c024, 0x24c024, 0x24c024, 0x072707, 0x072707, 0x072707, 0x072707, 0x24c024, 0x24c024, 0x24c024, 0x072707, 0x072707, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x072707, 0x072707, 0x072707, 0x072707, 0x072707, 0x000000, 0x000000, 0x072707, 0x072707, 0x072707, 0x072707, 0x072707, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x0e410e, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x0e410e, 0x000000, 0x000000, 0x000000, 0x0e410e, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x0e410e, 0x0e410e, 0x0e410e, 0x000000, 0x0e410e, 0x000000, 0x000000, 0x0e410e, 0x000000, 0x0e410e, 0x0e410e, 0x0e410e, 0x0e410e, 0x000000, 0x0e410e, 0x0e410e, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x0e410e, 0x0e410e, 0x0e410e, 0x0e410e, 0x0e410e, 0x0e410e, 0x0e410e, 0x0e410e, 0x000000, 0x000000, 0x0e410e, 0x0e410e, 0x0e410e, 0x0e410e, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x0e410e, 0x0e410e, 0x000000, 0x0e410e, 0x000000, 0x0e410e, 0x000000, 0x0e410e, 0x000000, 0x000000, 0x000000, 0x0e410e, 0x0e410e, 0x000000, 0x0e410e, 0x0e410e, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000\
}

#define frame18 {\
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x010101, 0x050505, 0x050505, 0x0d0d0d, 0x181818, 0x171717, 0x0f0f0f, 0x060606, 0x010101, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x070707, 0x202020, 0x3c3c3c, 0x4d4d4d, 0x757575, 0x808080, 0x7e7e7e, 0x777777, 0x686868, 0x3b3b3b, 0x151515, 0x030303, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x060606, 0x353535, 0x808080, 0x939393, 0xa4a4a4, 0xc0c0c0, 0xb2b2b2, 0xb1b1b1, 0xafafaf, 0xaeaeae, 0xa4a4a4, 0x818181, 0x404040, 0x090909, 0x010101, 0x000000, 0x000000, \
0x000000, 0x000000, 0x020202, 0x232323, 0x7b7b7b, 0x9d9d9d, 0xbebebe, 0x323232, 0xa6a6a6, 0xcdcdcd, 0xcccccc, 0x6c6c6c, 0x606060, 0xbdbdbd, 0xb7b7b7, 0x979797, 0x444444, 0x080808, 0x000000, 0x000000, \
0x000000, 0x010101, 0x141414, 0x696969, 0xa2a2a2, 0xb2b2b2, 0x7b7b7b, 0x040404, 0x565656, 0xd1d1d1, 0xd2d2d2, 0x2a2a2a, 0x141414, 0x333333, 0xa0a0a0, 0xb0b0b0, 0x8b8b8b, 0x252525, 0x000000, 0x000000, \
0x000000, 0x080808, 0x4c4c4c, 0x9a9a9a, 0xc1c1c1, 0x262626, 0x202020, 0x2a2a2a, 0x3e3e3e, 0xb7b7b7, 0xd4d4d4, 0x3a3a3a, 0x272727, 0x1c1c1c, 0x282828, 0xbebebe, 0x9c9c9c, 0x525252, 0x060606, 0x000000, \
0x000000, 0x111111, 0x6f6f6f, 0xacacac, 0xcacaca, 0x6a6a6a, 0x4c4c4c, 0x2d2d2d, 0x232323, 0xd5d5d5, 0xd7d7d7, 0x353535, 0x3a3a3a, 0x2d2d2d, 0x3e3e3e, 0xc2c2c2, 0x9b9b9b, 0x6e6e6e, 0x181818, 0x000000, \
0x000000, 0x131313, 0x838383, 0xc0c0c0, 0xcacaca, 0xcbcbcb, 0x919191, 0x343434, 0x525252, 0xd9d9d9, 0xd9d9d9, 0x6a6a6a, 0x343434, 0x505050, 0xbdbdbd, 0xb0b0b0, 0x959595, 0x919191, 0x484848, 0x040404, \
0x000000, 0x141414, 0x848484, 0xbfbfbf, 0xc9c9c9, 0xcccccc, 0xd3d3d3, 0xd7d7d7, 0xb4b4b4, 0x9e9e9e, 0xa3a3a3, 0xc8c8c8, 0xafafaf, 0xc9c9c9, 0xb6b6b6, 0xa8a8a8, 0xa4a4a4, 0x9a9a9a, 0x7b7b7b, 0x1c1c1c, \
0x000000, 0x262626, 0x949494, 0xbdbdbd, 0x989898, 0x636363, 0x808080, 0x272727, 0x414141, 0x232323, 0x1e1e1e, 0x1e1e1e, 0x212121, 0x4e4e4e, 0x8f8f8f, 0xacacac, 0xa7a7a7, 0x8b8b8b, 0x868686, 0x313131, \
0x000000, 0x313131, 0x929292, 0x8c8c8c, 0x363636, 0x393939, 0x222222, 0x1c1c1c, 0x1c1c1c, 0x1d1d1d, 0x1d1d1d, 0x1b1b1b, 0x1b1b1b, 0x1b1b1b, 0x212121, 0x212121, 0xaaaaaa, 0x606060, 0x898989, 0x474747, \
0x000000, 0x252525, 0x878787, 0xa4a4a4, 0x5c5c5c, 0x575757, 0x525252, 0x232323, 0x191919, 0x1c1c1c, 0x1c1c1c, 0x1e1e1e, 0x1c1c1c, 0x1e1e1e, 0x4b4b4b, 0x7c7c7c, 0xbdbdbd, 0x797979, 0x878787, 0x525252, \
0x000000, 0x0a0a0a, 0x3e3e3e, 0x6a6a6a, 0x9b9b9b, 0x5d5d5d, 0xa0a0a0, 0xb6b6b6, 0x868686, 0x575757, 0x686868, 0x4f4f4f, 0x636363, 0x8d8d8d, 0xc1c1c1, 0xc5c5c5, 0xc8c8c8, 0x9b9b9b, 0x8d8d8d, 0x3b3b3b, \
0x000000, 0x010101, 0x060606, 0x414141, 0x9d9d9d, 0x606060, 0x323232, 0x565656, 0x7b7b7b, 0x888888, 0xa4a4a4, 0x8a8a8a, 0x7a7a7a, 0x797979, 0x999999, 0xafafaf, 0xadadad, 0x4d4d4d, 0x2b2b2b, 0x0a0a0a, \
0x000000, 0x000000, 0x000000, 0x252525, 0x848484, 0x5a5a5a, 0x0d0d0d, 0x070707, 0x151515, 0x3e3e3e, 0x929292, 0x4a4a4a, 0x1c1c1c, 0x191919, 0x4c4c4c, 0x7e7e7e, 0x5e5e5e, 0x0f0f0f, 0x000000, 0x000000\
}

#define frame19 {\
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0xd2ff34, 0xd2ff34, 0xd2ff34, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0xd2ff34, 0x000000, 0x000000, 0xd2ff34, 0xd2ff34, 0x000000, 0x000000, 0xd2ff34, 0xd2ff34, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0xd2ff34, 0xd2ff34, 0x000000, 0x000000, 0x000000, \
0x000000, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0x000000, \
0x000000, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0x000000, \
0x000000, 0xd2ff34, 0x000000, 0x000000, 0xd2ff34, 0xd2ff34, 0x000000, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0x000000, \
0x000000, 0xd2ff34, 0xd2ff34, 0xd2ff34, 0xd2ff34, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0x000000, \
0x000000, 0xd2ff34, 0x000000, 0x000000, 0xd2ff34, 0xd2ff34, 0x000000, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0x000000, \
0x000000, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0x000000, \
0x000000, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0x000000, 0x000000, \
0x000000, 0xd2ff34, 0xd2ff34, 0xd2ff34, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0xd2ff34, 0xd2ff34, 0x000000, 0x000000, 0x000000, 0xd2ff34, 0xd2ff34, 0xd2ff34, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, \
0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000\
}

#define frame20 { \
0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0xdddddd, 0x9a9a9a, 0xdddddd, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0xdddddd, 0xdddddd, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, \
0x9a9a9a, 0xdddddd, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0xdddddd, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0xdddddd, 0x9a9a9a, 0x9a9a9a, 0xdddddd, 0x9a9a9a, 0x9a9a9a, 0xdddddd, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, \
0x9a9a9a, 0x9a9a9a, 0xdddddd, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0xdddddd, 0x9a9a9a, 0xdddddd, 0xdddddd, 0x9a9a9a, 0x9a9a9a, 0xdddddd, 0xdddddd, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, \
0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0xdddddd, 0xdddddd, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, \
0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x000000, 0x335e17, 0x316a0a, 0x2d6408, 0x2a5c08, 0x295a08, 0x285807, 0x295a08, 0x295908, 0x275707, 0x29540d, 0x2d5314, 0x33541e, 0x000000, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, \
0x9a9a9a, 0x9a9a9a, 0x616161, 0x000000, 0x000000, 0x337e01, 0x347f01, 0x347f01, 0x2c6605, 0x2c6307, 0x265904, 0x225102, 0x224f04, 0x2e6f02, 0x337f00, 0x000000, 0x000000, 0x828282, 0x9a9a9a, 0x9a9a9a, \
0x9a9a9a, 0x4a4a4a, 0x050505, 0x070707, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x000000, 0x0b0b0b, 0x8f8f8f, 0x9a9a9a, \
0x9a9a9a, 0x666666, 0x101010, 0x090909, 0x1e1e1e, 0x161616, 0x000000, 0x000000, 0x000000, 0x181818, 0x181818, 0x000000, 0x000000, 0x171717, 0x141414, 0x212121, 0x2d2d2d, 0x0c0c0c, 0x7a7a7a, 0x9a9a9a, \
0x9a9a9a, 0x909090, 0x242424, 0x070707, 0x151515, 0x151515, 0x151515, 0x161616, 0x1b1b1b, 0x222222, 0x1c1c1c, 0x181818, 0x161616, 0x151515, 0x161616, 0x2e2e2e, 0x1d1d1d, 0x0d0d0d, 0x848484, 0x9a9a9a, \
0x9a9a9a, 0x9a9a9a, 0x3f3f3f, 0x0e0e0e, 0x141414, 0x161616, 0x151515, 0x181818, 0x191919, 0x161616, 0x161616, 0x151515, 0x151515, 0x151515, 0x141414, 0x090909, 0x0d0d0d, 0x101010, 0x9a9a9a, 0x9a9a9a, \
0x9a9a9a, 0x9a9a9a, 0x707070, 0x151515, 0x0c0c0c, 0x191919, 0x161616, 0x141414, 0x161616, 0x151515, 0x151515, 0x151515, 0x171717, 0x121212, 0x0b0b0b, 0x121212, 0x090909, 0x1d1d1d, 0x9a9a9a, 0x9a9a9a, \
0x9a9a9a, 0x9a9a9a, 0x929292, 0x282828, 0x313131, 0x131313, 0x101010, 0x0c0c0c, 0x272727, 0x090909, 0x0b0b0b, 0x171717, 0x111111, 0x0f0f0f, 0x0e0e0e, 0x090909, 0x101010, 0x606060, 0x9a9a9a, 0x9a9a9a, \
0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x6f6f6f, 0x1b1b1b, 0x121212, 0x1b1b1b, 0x161616, 0x090909, 0x030303, 0x040404, 0x101010, 0x191919, 0x0b0b0b, 0x151515, 0x1a1a1a, 0x444444, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, \
0x9a9a9a, 0x9a9a9a, 0x9a9a9a, 0x000000, 0x000000, 0x232323, 0x1e1e1e, 0x1e1e1e, 0x1d1d1d, 0x1f1f1f, 0x181818, 0x171717, 0x141414, 0x151515, 0x1a1a1a, 0x000000, 0x000000, 0x9a9a9a, 0x9a9a9a, 0x9a9a9a, \
0x9a9a9a, 0x9a9a9a, 0x000000, 0x000000, 0x9a9a9a, 0x9a9a9a, 0x8f8f8f, 0x282828, 0x1e1e1e, 0x151515, 0x161616, 0x1a1a1a, 0x3e3e3e, 0x828282, 0x8d8d8d, 0x9a9a9a, 0x000000, 0x000000, 0x9a9a9a, 0x9a9a9a\
}

static uint32_t frames[20][300] = {
    frame01, frame02, frame03, frame04, frame05, frame06, frame07, frame08, frame09, frame10, frame11, frame12,
    frame13, frame14, frame15, frame16, frame17, frame18, frame19, frame20
};

#endif

Frame Converter

Python
from PIL import Image
import argparse

ap = argparse.ArgumentParser()
ap.add_argument("-n", "--im-name", required=True, help="Name of image to convert")
ap.add_argument("-o", "--output", required=True, help="Name of file to output array")
ap.add_argument("-m", "--map", action='store_true', help="Configure program to output either 1 or 0 for game maps", dest='is_map', default=False)
args = vars(ap.parse_args())

im = Image.open(args["im_name"])

im_size = im.size
print("You selected the map creation function.")
print("Now converting {0} with size of {1} by {2} to a C-style array, outputting to file: {3}".format(args["im_name"], im_size[0], im_size[1], args["output"]))

pixel_data = im.load()

output_file = open(args["output"], 'w+')

for row in range(im_size[1]):
    for column in range(im_size[0]):
        pixel_val = pixel_data[column, row]
        #print(pixel_val)
        if args["is_map"]:
            element_str = '{:02x}'
            if pixel_val[0] >= 1:
                pixel_val = [1]
            else:
                pixel_val = [0]
        else:
            element_str = len(pixel_val) * '{:02x}'
        if row == im_size[1] - 1 and column == im_size[0] - 1:
            element_str = "0x" + element_str.format(*pixel_val)
        else:
            element_str = "0x" + element_str.format(*pixel_val) + ", "
        output_file.write(element_str)
    output_file.write('\n')

print("Image converted successfully.")

Credits

Arduino “having11” Guy

Arduino “having11” Guy

82 projects • 539 followers
18 year-old IoT and embedded systems enthusiast. Also an intern at Hackster.io who loves working on projects and sharing knowledge.

Comments