23 if (input ==
nullptr || input[0] !=
'0' || input[1] !=
'x' || !
isHex(input[2]) ||!
isHex(input[3]) || !
isHex(input[4]) || !
isHex(input[5]) || !
isHex(input[6]) || !
isHex(input[7]) || input[8] !=
NULL) {
32 constexpr
int stampHeight = 10;
33 constexpr
int stampWidth = 10;
36 static_assert(stampHeight % 2 == 0 || stampWidth % 2 == 0,
"Even number of XOR needed.");
38 KDColor stamp[stampWidth*stampHeight];
39 for (
int i=0;i<stampWidth*stampHeight; i++) {
51 for (
int i=0;i<stampWidth*stampHeight; i++) {
55 for (
int i=0;i<stampWidth*stampHeight; i++) {
void Display(const char *input)
void pullRect(KDRect r, KDColor *pixels)
const char *const sSyntaxError
void pushRect(KDRect r, const KDColor *pixels)
uint32_t hexNumber(const char *s, int maxLength)
constexpr KDColor KDColorBlack
void reply(const char *s)
int strcmp(const char *s1, const char *s2)
static constexpr KDColor RGB24(uint32_t rgb)