Compare commits

..

No commits in common. "b8546a4d57d83b48809ee51906b6fcb8e3aca9b6" and "7bac75350720e4105fbfacbf3c0f83059c3b9aea" have entirely different histories.

2 changed files with 5 additions and 4 deletions

2
.gitignore vendored
View File

@ -21,4 +21,4 @@
go.work go.work
/Session.vim /Session.vim
/maze.png /maze.png
/sol.png /maze_sol.png

View File

@ -25,6 +25,7 @@ func (v *VideoVisualizer) Init(*maze.Maze) {
panic(err) panic(err)
} }
v.ffmpeg_cmd = path v.ffmpeg_cmd = path
println(path)
} }
func (v *VideoVisualizer) Run(lets_go chan<- bool) { lets_go <- true } func (v *VideoVisualizer) Run(lets_go chan<- bool) { lets_go <- true }
@ -43,8 +44,8 @@ func (v *VideoVisualizer) Visualize(solved_chan <-chan *maze.SolvedMaze) {
img_writer := writer.ImageWriter{ img_writer := writer.ImageWriter{
Filename: path.Join(tmp_dir, fmt.Sprintf("%07v.png", i)), Filename: path.Join(tmp_dir, fmt.Sprintf("%07v.png", i)),
Maze: solved, Maze: solved,
CellWidth: 5, CellWidth: 2,
CellHeight: 5, CellHeight: 2,
WallColor: color.Black, WallColor: color.Black,
PathColor: color.White, PathColor: color.White,
SolutionGradient: colorgrad.Warm(), SolutionGradient: colorgrad.Warm(),
@ -60,7 +61,7 @@ func (v *VideoVisualizer) Visualize(solved_chan <-chan *maze.SolvedMaze) {
"-y", "-y",
"-pattern_type", "glob", "-pattern_type", "glob",
"-i", path.Join(tmp_dir, "*.png"), "-i", path.Join(tmp_dir, "*.png"),
"-r", fmt.Sprint(int(v.Framerate)), "-framerate", fmt.Sprint(v.Framerate),
v.Filename, v.Filename,
) )
err = cmd.Run() err = cmd.Run()