summaryrefslogtreecommitdiff
path: root/src/types/background_fill.zig
blob: 86aaa599e9a36e5dabe1b8ebb73e43327c50e1f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const json = @import("../json.zig");

pub const BackgroundFill = union(enum) {
    solid: struct {
        color: u24,
    },
    gradient: struct {
        top_color: u24,
        bottom_color: u24,
        rotation_angle: u16,
    },
    freeform_gradient: struct {
        colors: []const u24,
    },

    pub const jsonParse = json.makeJsonParse(BackgroundFill);
};