Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
61 lines (50 loc) · 2.15 KB

File metadata and controls

61 lines (50 loc) · 2.15 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* magnification factor. must be >0.0 */
static float MAG_FACTOR = 3.0f;
/* zoom in/out factor */
static const float MAG_STEP = 1.025f;
/* size of the magnifier */
static const uint MAG_SIZE = 192;
/* default scaling function */
static const MagFunc mag_func = nearest_neighbour;
/*
* COLORS: All the colors here are in ARGB32 format, e.g 0xAARRGGBB.
*/
/* square() options */
static const uint SQUARE_WIDTH = 2;
static const uint SQUARE_COLOR = 0xffff3838;
/* xhair() options */
static const uint XHAIR_SIZE = 5;
static const uint XHAIR_BORDER_WIDTH = 2;
static const uint XHAIR_COLOR = 0xffff3838;
/* grid() options */
static const uint GRID_SIZE = 5 * 2; /* best kept 2x XHAIR_SIZE */
static const uint GRID_COLOR = 0xff3C3836;
/* circle_border() options */
static const uint CIRCLE_RADIUS = 192 / 2; /* best kept 0.5x MAG_SIZE */
static const uint CIRCLE_WIDTH = 3;
static const uint CIRCLE_COLOR = 0xffff3838;
static const Bool CIRCLE_TRANSPARENT_OUTSIDE = True;
/* example filter sequences */
static const FilterFunc sq_cross[] = { square, xhair };
static const FilterFunc sq_grid_cross[] = { grid, square, xhair };
static const FilterFunc circle_grid_cross[] = { grid, circle, xhair };
static const FilterFunc icircle_grid_cross[] = { grid, icircle, xhair };
/* default filter sequence, overridden via cli arg `--mag-filters` */
static const FilterSeq filter_default = FILTER_SEQ_FROM_ARRAY(icircle_grid_cross);
/* max time (in ms) allowed to go on without a redraw */
static const int MAX_FRAME_TIME = 16;
/* default output format, overridden via cli arg.
* available options: OUTPUT_{NONE,HEX,RGB,HSL,ALL}
* the options may be OR-ed together, e.g: `OUTPUT_RGB | OUTPUT_HSL`
*/
static const enum output OUTPUT_DEFAULT = OUTPUT_ALL;
/* convenient macro for populating the filter table */
#define FILTER_TABLE_ENTRY(X) { (uchar *)(#X), sizeof (#X) - 1 }, X
/* table of filter functions, used by filter_parse() for mapping --mag-filters */
static const struct { const Str str; FilterFunc f; } FILTER_TABLE[] = {
{ FILTER_TABLE_ENTRY(square) },
{ FILTER_TABLE_ENTRY(xhair) },
{ FILTER_TABLE_ENTRY(grid) },
{ FILTER_TABLE_ENTRY(circle) },
{ FILTER_TABLE_ENTRY(icircle) },
};
Morty Proxy This is a proxified and sanitized view of the page, visit original site.