-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfastchart_effects.h
More file actions
32 lines (27 loc) · 1.44 KB
/
Copy pathfastchart_effects.h
File metadata and controls
32 lines (27 loc) · 1.44 KB
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
/*
+----------------------------------------------------------------------+
| Copyright (c) 2025-2026, Ilia Alshanetsky |
| Copyright (c) 2025-2026, Advanced Internet Designs Inc. |
+----------------------------------------------------------------------+
| This source file is subject to the BSD 3-Clause license that is |
| bundled with this package in the file LICENSE. |
+----------------------------------------------------------------------+
| Author: Ilia Alshanetsky <ilia@ilia.ws> |
+----------------------------------------------------------------------+
*/
#ifndef FASTCHART_EFFECTS_H
#define FASTCHART_EFFECTS_H
#include "php_fastchart.h"
#include "fastchart_target.h"
/* Linearly interpolate between two 24-bit RGB ints. t in [0,1]. */
int fastchart_lerp_rgb(int from, int to, double t);
/* Drop-shadow helpers. v1.0 no-ops; real SVG <filter feGaussianBlur>
* emission is v1.1. */
void fastchart_shadow_filled_rectangle(fastchart_target_t *t,
fastchart_obj *chart,
int x0, int y0, int x1, int y1);
void fastchart_shadow_filled_arc(fastchart_target_t *t,
fastchart_obj *chart,
int cx, int cy, int diameter,
int start_deg, int end_deg);
#endif /* FASTCHART_EFFECTS_H */