mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Yet another color darkening function.
This commit is contained in:
parent
7465b4ffaf
commit
2ac51fb597
@ -36,6 +36,14 @@ static tracy_force_inline uint32_t DarkenColor( uint32_t color )
|
||||
( ( ( ( color & 0x000000FF ) ) * 2 / 3 ) );
|
||||
}
|
||||
|
||||
static tracy_force_inline uint32_t DarkenColorHalf( uint32_t color )
|
||||
{
|
||||
return 0xFF000000 |
|
||||
( ( ( ( color & 0x00FF0000 ) >> 16 ) / 2 ) << 16 ) |
|
||||
( ( ( ( color & 0x0000FF00 ) >> 8 ) / 2 ) << 8 ) |
|
||||
( ( ( ( color & 0x000000FF ) ) / 2 ) );
|
||||
}
|
||||
|
||||
static tracy_force_inline uint32_t DarkenColorMore( uint32_t color )
|
||||
{
|
||||
return 0xFF000000 |
|
||||
|
Loading…
Reference in New Issue
Block a user