mirror of
https://github.com/s00500/SimpleExpressions
synced 2025-07-07 01:10:19 +00:00
Adding Shape instead of full color
This commit is contained in:
134
Shapes.h
134
Shapes.h
@ -4,75 +4,117 @@
|
||||
struct Frame
|
||||
{
|
||||
char name[20];
|
||||
int data[7][3];
|
||||
bool data[7];
|
||||
}
|
||||
typedef Frame;
|
||||
|
||||
|
||||
struct MulticolorFrame
|
||||
{
|
||||
char name[20];
|
||||
int data[7][3];
|
||||
}
|
||||
typedef MulticolorFrame;
|
||||
|
||||
//***********************************************************************************
|
||||
//*********************************MOUTHS DEFINES************************************
|
||||
//***********************************************************************************
|
||||
|
||||
#define shapeNumber 5 // add the current shape count here
|
||||
// and don't make names longer than 20!
|
||||
#define frameCount 18
|
||||
#define colorFrameCount 1
|
||||
|
||||
// TODO: calculate me
|
||||
|
||||
const Frame shapes[] = {
|
||||
{
|
||||
"zeros",
|
||||
{
|
||||
{0,0,0},
|
||||
{0,0,0},
|
||||
{0,0,0},
|
||||
{0,0,0},
|
||||
{0,0,0},
|
||||
{0,0,0},
|
||||
{0,0,0}
|
||||
}
|
||||
{0, 0, 0, 0, 0, 0, 0}
|
||||
},
|
||||
{
|
||||
"happySmall",
|
||||
{
|
||||
{0,0,0},
|
||||
{0,0,0},
|
||||
{0,150,0},
|
||||
{0,150,0},
|
||||
{0,0,0},
|
||||
{0,0,0},
|
||||
{0,0,0}
|
||||
}
|
||||
{0, 0, 1, 1, 0, 0, 0}
|
||||
},
|
||||
{
|
||||
"happyFull",
|
||||
{
|
||||
{0,0,0},
|
||||
{0,150,0},
|
||||
{0,150,0},
|
||||
{0,150,0},
|
||||
{0,150,0},
|
||||
{0,0,0},
|
||||
{0,0,0}
|
||||
}
|
||||
{0, 1, 1, 1, 1, 0, 0}
|
||||
},
|
||||
{
|
||||
"sadSmall",
|
||||
{
|
||||
{0, 0, 0},
|
||||
{0, 0, 0},
|
||||
{0, 0, 0},
|
||||
{0, 0, 0},
|
||||
{0, 0, 0},
|
||||
{0, 150,0},
|
||||
{0, 150,0}
|
||||
}
|
||||
{0, 0, 0, 0, 0, 1, 1}
|
||||
},
|
||||
{
|
||||
"sadFull",
|
||||
{0, 1, 0, 0, 1, 1, 1}
|
||||
},
|
||||
{
|
||||
"neutral",
|
||||
{1, 1, 0, 0, 1, 0, 0}
|
||||
},
|
||||
{
|
||||
"circle",
|
||||
{0, 1, 1, 1, 1, 1, 1}
|
||||
},
|
||||
{
|
||||
"center",
|
||||
{1, 0, 0, 0, 0, 0, 0}
|
||||
},
|
||||
{
|
||||
"hook",
|
||||
{1, 0, 0, 1, 1, 0, 1}
|
||||
},
|
||||
{
|
||||
"upsidedownhook",
|
||||
{1, 0, 1, 0, 1, 1, 0}
|
||||
},
|
||||
{
|
||||
"kooh",
|
||||
{1, 1, 1, 0, 0, 1, 0}
|
||||
},
|
||||
{
|
||||
"upsidedownkooh",
|
||||
{1, 1, 0, 1, 0, 0, 1}
|
||||
},
|
||||
{
|
||||
"cross",
|
||||
{1, 0, 1, 1, 0, 1, 1}
|
||||
},
|
||||
{
|
||||
"rect",
|
||||
{0, 0, 1, 1, 0, 1, 1}
|
||||
},
|
||||
{
|
||||
"leftarrow",
|
||||
{1, 1, 0, 1, 1, 1, 0}
|
||||
},
|
||||
{
|
||||
"rightarrow",
|
||||
{1, 1, 1, 0, 1, 0, 1}
|
||||
},
|
||||
{
|
||||
"lefthalf",
|
||||
{0, 0, 0, 1, 1, 1, 0}
|
||||
},
|
||||
{
|
||||
"righthalf",
|
||||
{0, 1, 1, 0, 0, 0, 1}
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const MulticolorFrame colorShapes[] = {
|
||||
{
|
||||
"colorCircle",
|
||||
{
|
||||
{0,0,0},
|
||||
{0,150,0},
|
||||
{0,0,0},
|
||||
{0,0,0},
|
||||
{0,150,0},
|
||||
{0,150,0},
|
||||
{0,150,0}
|
||||
{50,0,0},
|
||||
{0,50,0},
|
||||
{0,0,50},
|
||||
{50,0,0},
|
||||
{0,50,0},
|
||||
{0,0,50},
|
||||
{50,0,0}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user