#include "capd/krak/krak.h"
|
| #define | MYCOL(c) (c+1) |
| |
| #define | DCR(a) (a>0.0)*4+(a>=1.0)*32 |
| |
| #define | DCG(a) (a>0.0)*2+(a>=1.0)*16 |
| |
| #define | DCB(a) (a>0.0)*1+(a>=1.0)*8 |
| |
| #define | SC(c, r, g, b) colcode[c]=DCR(r)+DCG(g)+DCB(b) |
| |
|
| void | ShowCursor (void) |
| |
| void | InitMouse () |
| |
| void | HideCursor () |
| |
| void | GetPos (int *i, int *j) |
| |
| int | GetButtons () |
| |
| void | SetFgCol (int col) |
| |
| void | set_col () begin SC(WHITE |
| |
| void | SC (BLACK, 0.0, 0.0, 0.0) |
| |
| | SC (RED, 1.0, 0.0, 0.0) |
| |
| | SC (GREEN, 0.0, 1.0, 0.0) |
| |
| | SC (BLUE, 0.0, 0.0, 1.0) |
| |
| | SC (YELLOW, 1.0, 1.0, 0.0) |
| |
| | SC (MAGENTA, 1.0, 0.0, 1.0) |
| |
| | SC (CYAN, 0.0, 1.0, 1.0) |
| |
| | SC (ORANGE, 1.0, 0.7, 0.0) |
| |
| | SC (VIOLET, 0.6, 0.0, 0.6) |
| |
| | SC (PINE, 0.0, 0.5, 0.0) |
| |
| | SC (BROWN, 0.6, 0.0, 0.0) |
| |
| | SC (OLIVE, 0.6, 0.6, 0.0) |
| |
| | SC (DARKBLUE, 0.0, 0.0, 0.6) |
| |
| | SC (ORANGERED, 1.0, 0.5, 0.5) |
| |
| | SC (BLUEGREEN, 0.5, 1.0, 0.8) |
| |
◆ DCB
| #define DCB |
( |
|
a | ) |
(a>0.0)*1+(a>=1.0)*8 |
◆ DCG
| #define DCG |
( |
|
a | ) |
(a>0.0)*2+(a>=1.0)*16 |
◆ DCR
| #define DCR |
( |
|
a | ) |
(a>0.0)*4+(a>=1.0)*32 |
◆ SC
| #define SC |
( |
|
c, |
|
|
|
r, |
|
|
|
g, |
|
|
|
b |
|
) |
| colcode[c]=DCR(r)+DCG(g)+DCB(b) |