mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 05:55:46 +01:00
some formatting fixes
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
// fits colours with each channel having a width of 2 bits
|
||||
#include <stdint.h>
|
||||
|
||||
// fits colours with each channel having a width of 2 bits
|
||||
typedef union {
|
||||
uint8_t packed;
|
||||
struct {
|
||||
@@ -13,10 +12,10 @@ typedef union {
|
||||
};
|
||||
} Colour;
|
||||
|
||||
#define COLOUR_RED ((Colour){0b11000011})
|
||||
#define COLOUR_YELLOW ((Colour){0b11110011})
|
||||
#define COLOUR_ORANGE ((Colour){0b11100011})
|
||||
#define COLOUR_GREEN ((Colour){0b00110011})
|
||||
#define COLOUR_CYAN ((Colour){0b00111111})
|
||||
#define COLOUR_BLUE ((Colour){0b00001111})
|
||||
#define COLOUR_MAGENTA ((Colour){0b11001111})
|
||||
#define COLOUR_RED ((Colour){0b11000011})
|
||||
#define COLOUR_YELLOW ((Colour){0b11110011})
|
||||
#define COLOUR_ORANGE ((Colour){0b11100011})
|
||||
#define COLOUR_GREEN ((Colour){0b00110011})
|
||||
#define COLOUR_CYAN ((Colour){0b00111111})
|
||||
#define COLOUR_BLUE ((Colour){0b00001111})
|
||||
#define COLOUR_MAGENTA ((Colour){0b11001111})
|
||||
|
||||
Reference in New Issue
Block a user