summaryrefslogtreecommitdiff
path: root/src/types/background_fill.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/types/background_fill.zig')
-rw-r--r--src/types/background_fill.zig17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/types/background_fill.zig b/src/types/background_fill.zig
new file mode 100644
index 0000000..86aaa59
--- /dev/null
+++ b/src/types/background_fill.zig
@@ -0,0 +1,17 @@
1const json = @import("../json.zig");
2
3pub const BackgroundFill = union(enum) {
4 solid: struct {
5 color: u24,
6 },
7 gradient: struct {
8 top_color: u24,
9 bottom_color: u24,
10 rotation_angle: u16,
11 },
12 freeform_gradient: struct {
13 colors: []const u24,
14 },
15
16 pub const jsonParse = json.makeJsonParse(BackgroundFill);
17};