1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Color plot background.

This commit is contained in:
Bartosz Taudul
2022-07-24 01:39:51 +02:00
parent 755df94f45
commit a3b6a9c95c
2 changed files with 13 additions and 1 deletions
+8
View File
@@ -28,6 +28,14 @@ static tracy_force_inline uint32_t DarkenColor( uint32_t color )
( ( ( ( color & 0x000000FF ) ) * 2 / 3 ) );
}
static tracy_force_inline uint32_t DarkenColorMore( uint32_t color )
{
return 0xFF000000 |
( ( ( ( color & 0x00FF0000 ) >> 16 ) * 1 / 4 ) << 16 ) |
( ( ( ( color & 0x0000FF00 ) >> 8 ) * 1 / 4 ) << 8 ) |
( ( ( ( color & 0x000000FF ) ) * 1 / 4 ) );
}
}
#endif