Click here to Skip to main content
16,023,339 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralMullet wig? Check. IROC Z-28 Camaro? Check. Megadeth cassette tape? Double Check Pin
honey the codewitch2hrs 34mins ago
mvahoney the codewitch2hrs 34mins ago 
I've been very entertained by this:

For those of you that aren't halfway in the ground yet (you kids will all die in The Water Wars) the EGA Graphics Adapter was a circa 1987 display adapter for PCs with a 16-color palette selectable from 64 possible colors.

My graphics library allows you to deal with input and output data in any pixel format you want, even EGA.

I've been rendering SVGs to EGA as a sort of anachronistic attempt at avoiding responsibility and it is very gratifying somehow. Makes me want to listen to some Bengals or something.

AMD Ryzen Logo 32-bit color[^]

AMD Ryzen Logo EGA 4-bit palette[^]

Tiger 32-bit color[^]

Tiger EGA 4-bit palette[^]

What's surprising is how faithfully it represents the images even though I'm not adjusting the palette from the default 16 colors (EGA has 64, which i can use)

It's so easy to to mess with EGA

I've got this mess:

C++
// map an EGA palette to RGBA32
using pal_t = ega_palette<rgba_pixel<32>,false>;
pal_t pal;
using pixel_t =  //vector_pixel; // ARGB32
                //rgb_pixel<24>; // (callbacks, not direct) no alpha WORKS
                //rgb_pixel<16>; // (direct RGB16) WORKS
                //rgba_pixel<32>; // (direct RGBA32) WORKS
                //rgb_pixel<18>; // unaligned (use callbacks, not direct) WORKS
                //gsc_pixel<4>; // callbacks - correct
                typename pal_t::pixel_type; // callbacks, uses indexed color matching. change palette below to ega_palette
                //rgb_pixel<6>; // compare to full ega


I can add any pixel format I like. So I've just been fiddling, which I guess is the downside of making my code so almost hopelessly flexible.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix

GeneralRe: Mullet wig? Check. IROC Z-28 Camaro? Check. Megadeth cassette tape? Double Check Pin
PIEBALDconsult1 hr 58mins ago
mvePIEBALDconsult1 hr 58mins ago 
RantThere's tightly coupling and then there's this... Pin
Sander Rossel3hrs 36mins ago
professionalSander Rossel3hrs 36mins ago 
GeneralRe: There's tightly coupling and then there's this... Pin
honey the codewitch2hrs 32mins ago
mvahoney the codewitch2hrs 32mins ago 
GeneralRe: There's tightly coupling and then there's this... Pin
0x01AA2hrs 13mins ago
mve0x01AA2hrs 13mins ago 
GeneralGah! Microsoft! Pin
PIEBALDconsult4hrs 43mins ago
mvePIEBALDconsult4hrs 43mins ago 
GeneralRe: Gah! Microsoft! Pin
Indivara4hrs 31mins ago
professionalIndivara4hrs 31mins ago 
GeneralRe: Gah! Microsoft! Pin
dandy723hrs 57mins ago
dandy723hrs 57mins ago 
GeneralRe: Gah! Microsoft! Pin
PIEBALDconsult3hrs 12mins ago
mvePIEBALDconsult3hrs 12mins ago 
GeneralCopy-pasting... Pin
Sander Rossel8hrs 34mins ago
professionalSander Rossel8hrs 34mins ago 
GeneralRe: Copy-pasting... Pin
Amarnath S8hrs 6mins ago
professionalAmarnath S8hrs 6mins ago 
GeneralRe: Copy-pasting... Pin
honey the codewitch4hrs 38mins ago
mvahoney the codewitch4hrs 38mins ago 
GeneralRe: Copy-pasting... Pin
Sander Rossel3hrs 50mins ago
professionalSander Rossel3hrs 50mins ago 
GeneralRe: Copy-pasting... Pin
Rage6hrs 59mins ago
professionalRage6hrs 59mins ago 
GeneralRe: Copy-pasting... Pin
raddevus6hrs 13mins ago
mvaraddevus6hrs 13mins ago 
GeneralRe: Copy-pasting... Pin
k50542hrs 12mins ago
mvek50542hrs 12mins ago 
GeneralRe: Copy-pasting... Pin
PIEBALDconsult5hrs 37mins ago
mvePIEBALDconsult5hrs 37mins ago 
GeneralRe: Copy-pasting... Pin
Alister Morton4hrs 37mins ago
Alister Morton4hrs 37mins ago 
GeneralRe: Copy-pasting... Pin
dandy724hrs 15mins ago
dandy724hrs 15mins ago 
GeneralRe: Copy-pasting... Pin
Rage3hrs 57mins ago
professionalRage3hrs 57mins ago 
GeneralRe: Copy-pasting... Pin
dandy723hrs 52mins ago
dandy723hrs 52mins ago 
GeneralRe: Copy-pasting... Pin
PIEBALDconsult7mins ago
mvePIEBALDconsult7mins ago 
GeneralRe: Copy-pasting... Pin
dandy724hrs 19mins ago
dandy724hrs 19mins ago 
GeneralRe: Copy-pasting... Pin
Sander Rossel3hrs 51mins ago
professionalSander Rossel3hrs 51mins ago 
GeneralRe: Copy-pasting... Pin
Nelek39mins ago
protectorNelek39mins ago 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.