mirror of
https://github.com/GayPizzaSpecifications/padlab.git
synced 2025-08-03 21:21:33 +00:00
Improve drawing with digital zone highligts, futher colour tweaks, & thicker lines in GL.
It's also now no longer possible to trigger NW & SE angles when digital is set to 4 direction.
This commit is contained in:
24
util.h
24
util.h
@ -8,6 +8,7 @@
|
||||
#define CLAMP(X, A, B) (MIN((B), MAX((A), (X))))
|
||||
#define SATURATE(X) (CLAMP((X), 0, 1))
|
||||
|
||||
typedef struct { int x, y; } point;
|
||||
typedef struct { int w, h; } size;
|
||||
typedef struct { int x, y, w, h; } rect;
|
||||
|
||||
@ -17,17 +18,20 @@ typedef struct { int x, y, w, h; } rect;
|
||||
(((L) << 8) & 0x0000FF00) | \
|
||||
((A) & 0x000000FF))
|
||||
|
||||
#define MKRGB(C) (uint32_t)(((C) << 8) | 0x000000FF)
|
||||
|
||||
#define WHITE 0xFFFFFFFF
|
||||
#define GREY1 MKGREY(0x1F, 0xFF)
|
||||
#define GREY2 MKGREY(0x47, 0xFF)
|
||||
#define GREY3 MKGREY(0x67, 0xFF)
|
||||
#define GREY4 MKGREY(0x83, 0xFF)
|
||||
#define HILIGHT_GR1 0x2F3F1FFF
|
||||
#define HILIGHT_GR2 0x2F5F2FFF
|
||||
#define HILIGHT_GR3 0x1FFF1FFF
|
||||
#define HILIGHT_PU1 0x632E63FF
|
||||
#define HILIGHT_PU2 0x8A418AFF
|
||||
#define HILIGHT_PU3 0xFF68FFFF
|
||||
#define AVATAR 0xFF3333FF
|
||||
#define GREY2 MKGREY(0x37, 0xFF)
|
||||
#define GREY3 MKGREY(0x4F, 0xFF)
|
||||
#define GREY4 MKGREY(0x5F, 0xFF)
|
||||
#define GREY5 MKGREY(0x83, 0xFF)
|
||||
#define HILIGHT_GR1 MKRGB(0x2F3F1F)
|
||||
#define HILIGHT_GR2 MKRGB(0x387138)
|
||||
#define HILIGHT_GR3 MKRGB(0x1FFF1F)
|
||||
#define HILIGHT_PU1 MKRGB(0x632E63)
|
||||
#define HILIGHT_PU2 MKRGB(0x8A418A)
|
||||
#define HILIGHT_PU3 MKRGB(0xFF68FF)
|
||||
#define AVATAR MKRGB(0xFF3333)
|
||||
|
||||
#endif//UTIL_H
|
||||
|
Reference in New Issue
Block a user