summaryrefslogtreecommitdiffhomepage
path: root/cheatsheet/zh/raylib_colors.c
diff options
context:
space:
mode:
Diffstat (limited to 'cheatsheet/zh/raylib_colors.c')
-rw-r--r--cheatsheet/zh/raylib_colors.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/cheatsheet/zh/raylib_colors.c b/cheatsheet/zh/raylib_colors.c
new file mode 100644
index 0000000..e5450ad
--- /dev/null
+++ b/cheatsheet/zh/raylib_colors.c
@@ -0,0 +1,31 @@
+
+ //颜色宏定义
+ //自定义 raylib调色板, 打造令人惊叹的视觉效果
+ #define LIGHTGRAY (Color){ 200, 200, 255 } //浅灰色
+ #define GRAY (Color){ 130, 130, 130, 255 } //灰色
+ #define DARKGRAY (Color){ 80, 80, 80, 255 } //深灰色
+ #define YELLOW (Color){ 253, 249, 0, 255 } //黄色
+ #define GOLD (Color){ 255, 203, 0, 255 } //金色
+ #define ORANGE (Color){ 255, 161, 0, 255 } //橙色
+ #define PINK (Color){ 255, 109, 194, 255 } //粉色
+ #define RED (Color){ 230, 41, 55, 255 } //红色
+ #define MAROON (Color){ 190, 33, 55, 255 } //褐红色
+ #define GREEN (Color){ 0, 228, 48, 255 } //绿色
+ #define LIME (Color){ 0, 158, 47, 255 } //石灰
+ #define DARKGREEN (Color){ 0, 117, 44, 255 } //深绿色
+ #define SKYBLUE (Color){ 102, 191, 255, 255 } //天空蓝
+ #define BLUE (Color){ 0, 121, 241, 255 } //蓝色
+ #define DARKBLUE (Color){ 0, 82, 172, 255 } //深蓝色
+ #define PURPLE (Color){ 200, 122, 255, 255 } //紫色
+ #define VIOLET (Color){ 135, 60, 190, 255 } //紫罗兰色
+ #define DARKPURPLE (Color){ 112, 31, 126, 255 } //深紫色
+ #define BEIGE (Color){ 211, 176, 131, 255 } //米色
+ #define BROWN (Color){ 127, 106, 79, 255 } //棕色
+ #define DARKBROWN (Color){ 76, 63, 47, 255 } //深棕色
+
+ #define WHITE (Color){ 255, 255, 255 } //白色
+ #define BLACK (Color){ 0, 0, 0255 } //黑色
+ #define BLANK (Color){ 0, 0, 0 } //透明
+ #define MAGENTA (Color){ 255, 0, 255, 255 } //洋红色
+ #define RAYWHITE (Color){ 245, 245, 245, 255 } //射线白, 作者送的颜色
+