mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-13 17:51:27 -10:00
95 lines
2.9 KiB
C++
95 lines
2.9 KiB
C++
/*
|
|
* Copyright (C) Volition, Inc. 1999. All rights reserved.
|
|
*
|
|
* All source code herein is the property of Volition, Inc. You may not sell
|
|
* or otherwise commercially exploit the source or things you created based on the
|
|
* source.
|
|
*
|
|
*/
|
|
|
|
#include "graphics/2d.h"
|
|
#include "globalincs/alphacolors.h"
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------------
|
|
// ALPHA DEFINES/VARS
|
|
//
|
|
|
|
color Color_blue, Color_bright_blue, Color_green, Color_bright_green;
|
|
color Color_black, Color_grey, Color_silver, Color_white, Color_bright_white;
|
|
color Color_violet_gray, Color_violet, Color_pink, Color_light_pink;
|
|
color Color_dim_red, Color_red, Color_bright_red, Color_yellow, Color_bright_yellow;
|
|
color Color_ui_light_green, Color_ui_green;
|
|
color Color_ui_light_pink, Color_ui_pink;
|
|
|
|
// netplayer colors
|
|
color *Color_netplayer[20] = {
|
|
|
|
&Color_blue,
|
|
&Color_bright_blue,
|
|
&Color_green,
|
|
&Color_bright_green,
|
|
&Color_black,
|
|
&Color_grey,
|
|
&Color_silver,
|
|
&Color_white,
|
|
&Color_bright_white,
|
|
&Color_violet_gray,
|
|
&Color_violet,
|
|
&Color_dim_red,
|
|
&Color_red,
|
|
&Color_bright_red,
|
|
&Color_yellow,
|
|
&Color_bright_yellow,
|
|
&Color_ui_light_green,
|
|
&Color_ui_green,
|
|
&Color_ui_light_pink,
|
|
&Color_ui_pink,
|
|
};
|
|
|
|
|
|
// -----------------------------------------------------------------------------------
|
|
// ALPHA FUNCTIONS
|
|
//
|
|
|
|
// initialize all alpha colors (call at startup)
|
|
void alpha_colors_init()
|
|
{
|
|
// See the variable declarations above for color usage
|
|
gr_init_alphacolor( &Color_blue, 93, 93, 128, 255 );
|
|
gr_init_alphacolor( &Color_bright_blue, 185, 185, 255, 255 );
|
|
|
|
gr_init_alphacolor( &Color_green, 0, 120, 0, 255 );
|
|
gr_init_alphacolor( &Color_bright_green, 50, 190, 50, 255 );
|
|
|
|
gr_init_alphacolor( &Color_black, 0, 0, 0, 255 );
|
|
gr_init_alphacolor( &Color_grey, 65, 65, 65, 255 );
|
|
gr_init_alphacolor( &Color_silver, 160, 160, 160, 255 );
|
|
//gr_init_alphacolor( &Color_white, 185, 185, 185, 255 );
|
|
gr_init_alphacolor( &Color_white, 105, 105, 105, 255 );
|
|
gr_init_alphacolor( &Color_bright_white, 255, 255, 255, 255 );
|
|
|
|
gr_init_alphacolor( &Color_violet_gray, 160, 144, 160, 255 );
|
|
gr_init_alphacolor( &Color_violet, 192, 104, 192, 255 );
|
|
|
|
gr_init_alphacolor( &Color_dim_red, 80, 6, 6, 255 );
|
|
gr_init_alphacolor( &Color_red, 126, 6, 6, 255 );
|
|
gr_init_alphacolor( &Color_bright_red, 200, 0, 0, 255 );
|
|
|
|
gr_init_alphacolor( &Color_pink, 185, 150, 150, 255 );
|
|
gr_init_alphacolor( &Color_light_pink, 230, 190, 190, 255 );
|
|
|
|
// gr_init_alphacolor( &Color_yellow, 113, 184, 124, 255 );
|
|
// gr_init_alphacolor( &Color_bright_yellow, 162, 210, 162, 255 );
|
|
// This didn't look very "yellow"
|
|
gr_init_alphacolor( &Color_yellow, 255, 255, 122, 255 );
|
|
gr_init_alphacolor( &Color_bright_yellow, 255, 255, 0, 255 );
|
|
|
|
gr_init_alphacolor( &Color_ui_light_green, 161, 184, 161, 255 );
|
|
gr_init_alphacolor( &Color_ui_green, 190, 228, 190, 255 );
|
|
|
|
gr_init_alphacolor( &Color_ui_light_pink, 184, 161, 161, 255 );
|
|
gr_init_alphacolor( &Color_ui_pink, 228, 190, 190, 255 );
|
|
}
|