|
One of the key features of my graphics library is the ability to create arbitrary pixel formats so you can for example, create a bitmap with any kind of color model and memory footprint you like.
I thought I was a bit crazy, because most IoT devices are 16-bit RGB if not monochrome.
I thought I was overengineering
Then along came color e-ink and all of the sudden even my palette support made sense.
Then I started doing professional displays on embedded outside the IoT realm and many are 24-bit color.
using rgb24 = gfx::rgb_pixel<24>;
And Bob's your uncle
Well then I made an Arduino emulator for the PC, and directx threw me for a bit of a loop because there are 4 channels but one is unused:
template<size_t BitDepth>
using bgrx_pixel = gfx::pixel<
gfx::channel_traits<gfx::channel_name::B,(BitDepth/4)>,
gfx::channel_traits<gfx::channel_name::G,((BitDepth/4)+(BitDepth%4))>,
gfx::channel_traits<gfx::channel_name::R,(BitDepth/4)>,
gfx::channel_traits<gfx::channel_name::nop,(BitDepth/4),0,(1<<(BitDepth/4))-1,(1<<(BitDepth/4))-1>
>;
using screen_t = uix::screen<bgrx_pixel<32>>;
Bam!
I have not redesigned this feature of my library since its inception in like 2021. It keeps just kicking ass.
I do not design with any expectation that what I designed will remain unchanged that far out because it's usually not realistic. I am not that smart. This was all luck.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
modified 3hrs 10mins ago.
|
|
|
|
|
honey the codewitch wrote: I am not that smart. This was all luck.
It's not a coincidence that luck always prefers smart people.
|
|
|
|
|
There's a saying "You make your own luck".
|
|
|
|
|
I hate to do the "Cat video" thing, but technology is involved, and Robot Vacuum Pushes Cat Under Couch[^]
That's one patient cat - Dij would never have put up with such insolence!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
That's because AI knows better... The robot learned that that part of the house is a floor and must be cleand!
"It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox
|
|
|
|
|
|
Professor Brian Cox[^]
That last sentence sums up the majority of people on t'interwebs (this site excluded, natch*).
* The regulars** anyway.
** Well, most of 'em.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
The paradox exists becasue we are part of the problem and believe to be part of the solution...
"It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox
|
|
|
|
|
We get some wanderers from time to time.
|
|
|
|
|
I thought you didn't do Twatter.
This fact may, or may not, have something to do with the Fermi paradox.
|
|
|
|
|
I don't. But I do know deluded fools who do.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I guess that depends on the meaning of "do"
For example, I do not have an active twitter account. However, tweets find me through other avenues online, even on codeproject, as above. Sometimes I'll share them if they're funny or otherwise amusing. I can't log on to the platform formerly known as X and I have no intention of changing that. Perhaps that's the case with Griff.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Pretty much the same - I don't have a Twatter / Echh account and never have but twaats find their way too me sometimes.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I will lean on the side that all life seeks self survival, and so large collections are difficult to maintained. Selfishness limits a upper limit.
|
|
|
|
|
Before the internet, the village idiot stayed in the village pub.
Now he's everywhereé
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
Maximilien wrote: Now he's everywhereé in charge
FTFY!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wordle 1,097 4/6
🟨⬜⬜🟨🟨
🟩🟨⬜⬜🟨
🟩⬜🟩🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,097 2/6
🟩⬜⬜🟨🟨
🟩🟩🟩🟩🟩
I got lucky.
|
|
|
|
|
So did I!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wordle 1,097 2/6*
⬜⬜⬜🟨🟨
🟩🟩🟩🟩🟩
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
🟨⬜⬜🟩🟨
🟩🟩🟩🟩🟩
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
(20. Juni 2024) 4/6
⬛🟨⬛⬛⬛
🟨🟩⬛⬛⬛
🟩🟩🟩⬛🟩
🟩🟩🟩🟩🟩
Rules for the FOSW ![ ^]
MessageBox.Show(!string.IsNullOrWhiteSpace(_signature)
? $"This is my signature:{Environment.NewLine}{_signature}": "404-Signature not found");
|
|
|
|
|
Wordle 1,097 4/6*
🟩⬜⬜🟨🟨
🟩⬜🟩⬜🟩
🟩⬜🟩🟩🟩
🟩🟩🟩🟩🟩
Happiness will never come to those who fail to appreciate what they already have. -Anon
And those who were seen dancing were thought to be insane by those who could not hear the music. -Frederick Nietzsche
|
|
|
|
|
Wordle 1,097 3/6
⬛⬛⬛⬛🟨
🟩⬛🟩🟨⬛
🟩🟩🟩🟩🟩
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
I was trying to get some old projects of mine to build. They used CMake.
CMake wasn't building my projects. It used to find the compilers, but now it can't. So I added some env variables
Now CMake was building my projects. But I go to run them, I get no output. No error. Nothing.
Worse, I try to compile one of my projects that used my graphics lib and I was getting all kinds of compile errors. Yikes. Even though the C++ standard was set to 17.
I install another copy of MinGW from another source. Now it says my C++ compiler can't compile the test program (CMake tries the compiler with a dry run source file to see if it works)
I feel like an idiot.
I was using 32 bit versions of everything. I have no idea why. I know better.
It's been one of those days.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|