mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-12-10 05:30:42 -05:00
Fixed LCR and Xylos transmitters
This commit is contained in:
parent
d55a420dfd
commit
d40016ffda
39 changed files with 1614 additions and 151 deletions
|
|
@ -30,12 +30,18 @@ using Coord = int16_t;
|
|||
using Dim = int16_t;
|
||||
|
||||
struct Color {
|
||||
uint16_t v;
|
||||
uint16_t v; // rrrrrGGGGGGbbbbb
|
||||
|
||||
constexpr Color(
|
||||
) : v { 0 }
|
||||
{
|
||||
}
|
||||
|
||||
constexpr Color(
|
||||
uint16_t v
|
||||
) : v { v }
|
||||
{
|
||||
}
|
||||
|
||||
constexpr Color(
|
||||
uint8_t r,
|
||||
|
|
@ -49,6 +55,10 @@ struct Color {
|
|||
)}
|
||||
{
|
||||
}
|
||||
|
||||
Color operator-() const {
|
||||
return (v ^ 0xffff);
|
||||
}
|
||||
|
||||
static constexpr Color black() {
|
||||
return { 0, 0, 0 };
|
||||
|
|
@ -75,7 +85,7 @@ struct Color {
|
|||
}
|
||||
|
||||
static constexpr Color cyan() {
|
||||
return { 0, 128, 255 };
|
||||
return { 0, 255, 255 };
|
||||
}
|
||||
|
||||
static constexpr Color white() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue