mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-20 19:24:53 +00:00
Add GameOfLife Animation
This commit is contained in:
@@ -12,6 +12,7 @@ const ColorMix = @import("animations/ColorMix.zig");
|
||||
const Doom = @import("animations/Doom.zig");
|
||||
const Dummy = @import("animations/Dummy.zig");
|
||||
const Matrix = @import("animations/Matrix.zig");
|
||||
const GameOfLife = @import("animations/GameOfLife.zig");
|
||||
const Animation = @import("tui/Animation.zig");
|
||||
const TerminalBuffer = @import("tui/TerminalBuffer.zig");
|
||||
const Session = @import("tui/components/Session.zig");
|
||||
@@ -364,6 +365,10 @@ pub fn main() !void {
|
||||
var color_mix = ColorMix.init(&buffer, config.colormix_col1, config.colormix_col2, config.colormix_col3);
|
||||
animation = color_mix.animation();
|
||||
},
|
||||
.gameoflife => {
|
||||
var game_of_life = try GameOfLife.init(allocator, &buffer);
|
||||
animation = game_of_life.animation();
|
||||
},
|
||||
}
|
||||
defer animation.deinit();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user