diff options
| author | 2024-07-20 17:22:25 +0300 | |
|---|---|---|
| committer | 2024-07-20 17:22:25 +0300 | |
| commit | c70ffd095a6de5cd5b872796a0d82a8c5afc1511 (patch) | |
| tree | 56183274b05a294e357bad4d06b523472a1c4a4a /src/types/background_fill.zig | |
| download | ukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.tar.gz ukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.tar.xz ukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.zip | |
Initial commit
Diffstat (limited to 'src/types/background_fill.zig')
| -rw-r--r-- | src/types/background_fill.zig | 17 |
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 @@ | |||
| 1 | const json = @import("../json.zig"); | ||
| 2 | |||
| 3 | pub 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 | }; | ||