Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Mullet wig? Check. IROC Z-28 Camaro? Check. Megadeth cassette tape? Double Check

Mullet wig? Check. IROC Z-28 Camaro? Check. Megadeth cassette tape? Double Check

Scheduled Pinned Locked Moved The Lounge
graphicscomquestion
2 Posts 2 Posters 189 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    honey the codewitch
    wrote on last edited by
    #1

    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:

    // map an EGA palette to RGBA32
    using pal_t = ega_palette,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 direc

    P 1 Reply Last reply
    0
    • H honey the codewitch

      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:

      // map an EGA palette to RGBA32
      using pal_t = ega_palette,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 direc

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Every time I go to get a haircut (which is rare) I think about getting my mullet back. But I get talked down from that ledge.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups