aboutsummaryrefslogtreecommitdiff
path: root/.config/glava/radial.glsl
blob: f2e890d9d68c0044844058d64c5d04c2df91cdc8 (plain)
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

/* center radius (pixels) */
//#define C_RADIUS 70
#define C_RADIUS 100
/* center line thickness (pixels) */
#define C_LINE 1
/* outline color */
#define OUTLINE #ffffff
/* number of bars (use even values for best results) */
#define NBARS 200
/* width (in pixels) of each bar*/
#define BAR_WIDTH 8
/* outline color */
#define BAR_OUTLINE OUTLINE
/* outline width (in pixels, set to 0 to disable outline drawing) */
#define BAR_OUTLINE_WIDTH 0
/* Amplify magnitude of the results each bar displays */
/*#define AMPLIFY 300*/
#define AMPLIFY 500
/* Bar color */ 
/*#define COLOR (#4e1658 * ((d / 128 + 0))*/
/*#define COLOR (#8e2b9a * ((d / 100) + 0.8))*/
#define COLOR (#782482 * ((d / 100) + 1))
/* Angle (in radians) for how much to rotate the visualizer */
#define ROTATE (11)
/* Whether to switch left/right audio buffers */
#define INVERT 0
/* Aliasing factors. Higher values mean more defined and jagged lines.
   Note: aliasing does not have a notable impact on performance, but requires
   `xroot` transparency to be enabled since it relies on alpha blending with
   the background. */
#define BAR_ALIAS_FACTOR 100
#define C_ALIAS_FACTOR 100
/* Offset (Y) of the visualization */
#define CENTER_OFFSET_Y 0
/* Offset (X) of the visualization */
#define CENTER_OFFSET_X 960

/* Gravity step, override from `smooth_parameters.glsl` */
/*#request setgravitystep 10*/
#request setgravitystep 25

/* Smoothing factor, override from `smooth_parameters.glsl` */
/*#request setsmoothfactor 0.025*/
#request setsmoothfactor 0.06