Jo Engine  9
Jo Sega Saturn Engine
colors.h
Go to the documentation of this file.
1 /*
2 ** Jo Sega Saturn Engine
3 ** Copyright (c) 2012-2017, Johannes Fetz (johannesfetz@gmail.com)
4 ** All rights reserved.
5 **
6 ** Redistribution and use in source and binary forms, with or without
7 ** modification, are permitted provided that the following conditions are met:
8 ** * Redistributions of source code must retain the above copyright
9 ** notice, this list of conditions and the following disclaimer.
10 ** * Redistributions in binary form must reproduce the above copyright
11 ** notice, this list of conditions and the following disclaimer in the
12 ** documentation and/or other materials provided with the distribution.
13 ** * Neither the name of the Johannes Fetz nor the
14 ** names of its contributors may be used to endorse or promote products
15 ** derived from this software without specific prior written permission.
16 **
17 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18 ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19 ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20 ** DISCLAIMED. IN NO EVENT SHALL Johannes Fetz BE LIABLE FOR ANY
21 ** DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 ** ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
35 #ifndef __JO_COLORS_H__
36 # define __JO_COLORS_H__
37 
38 /*
39 ** MACROS
40 */
41 
42 /*
43 ** for jo_set_printf_color_index
44 */
45 #define JO_COLOR_INDEX_White (0)
46 #define JO_COLOR_INDEX_Black (1)
47 #define JO_COLOR_INDEX_Red (2)
48 #define JO_COLOR_INDEX_Green (3)
49 #define JO_COLOR_INDEX_Yellow (4)
50 #define JO_COLOR_INDEX_Blue (5)
51 #define JO_COLOR_INDEX_Purple (6)
52 
53 # define JO_COLOR_White (65535)
54 # define JO_COLOR_Black (32768)
55 # define JO_COLOR_Red (32799)
56 # define JO_COLOR_Green (33760)
57 # define JO_COLOR_Yellow (33791)
58 # define JO_COLOR_Blue (64512)
59 # define JO_COLOR_Purple (64543)
60 # define JO_COLOR_Magenta (65504)
61 # define JO_COLOR_Gray (58136)
62 # define JO_COLOR_DarkRed (32776)
63 # define JO_COLOR_DarkGreen (33024)
64 # define JO_COLOR_DarkYellow (33032)
65 # define JO_COLOR_DarkBlue (40960)
66 # define JO_COLOR_DarkPurple (40968)
67 # define JO_COLOR_DarkMagenta (41216)
68 # define JO_COLOR_DarkGray (41224)
69 # define JO_COLOR_MediumRed (32784)
70 # define JO_COLOR_MediumGreen (33280)
71 # define JO_COLOR_MediumYellow (33296)
72 # define JO_COLOR_MediumBlue (49152)
73 # define JO_COLOR_MediumPurple (49168)
74 # define JO_COLOR_MediumMagenta (49664)
75 # define JO_COLOR_MediumWhite (49680)
76 # define JO_COLOR_SemiRed (32792)
77 # define JO_COLOR_SemiGreen (33536)
78 # define JO_COLOR_SemiYellow (33560)
79 # define JO_COLOR_SemiBlue (57344)
80 # define JO_COLOR_SemiPurple (57368)
81 # define JO_COLOR_SemiMagenta (58112)
82 
83 # define JO_COLOR_Transparent (0)
84 
85 # define JO_COLOR_RGB(R,G,B) (0x8000 | ((B) << 10) | ((G) << 5) | (R))
86 
87 #endif /* !__JO_COLORS_H__ */
88 
89 /*
90 ** END OF FILE
91 */