Skip to content

Commit

Permalink
🏳️‍⚧️
Browse files Browse the repository at this point in the history
  • Loading branch information
ainaracatgirl committed Jul 12, 2023
1 parent 4878939 commit 9011397
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/drivers/framebuffer/fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,18 @@ void fbinfo() {
printf("fbsize : %016llx\n", (gBootArgs->Video.v_height) * (gBootArgs->Video.v_rowBytes >> 2) * 4);
}

// blue #5BCEFA
// pink #F5A9B8
// white #FFFFFF

uint32_t nextColorStrip[5] = { 0x5bcdfa, 0xf5a9b8, 0xccd0da, 0xf5a9b8, 0x5bcefa };
uint32_t nextColorPixel = -72;
uint32_t nextColor(uint32_t color)
{
uint32_t strip = (nextColorPixel++) / 164;
return nextColorStrip[strip % 5];

return 0xaaffff;
uint8_t r = (color >> 16) & 0xff;
uint8_t g = (color >> 8) & 0xff;
uint8_t b = (color ) & 0xff;
Expand Down

0 comments on commit 9011397

Please sign in to comment.