Compare commits
No commits in common. "b8546a4d57d83b48809ee51906b6fcb8e3aca9b6" and "7bac75350720e4105fbfacbf3c0f83059c3b9aea" have entirely different histories.
b8546a4d57
...
7bac753507
2
.gitignore
vendored
2
.gitignore
vendored
@ -21,4 +21,4 @@
|
||||
go.work
|
||||
/Session.vim
|
||||
/maze.png
|
||||
/sol.png
|
||||
/maze_sol.png
|
||||
|
@ -25,6 +25,7 @@ func (v *VideoVisualizer) Init(*maze.Maze) {
|
||||
panic(err)
|
||||
}
|
||||
v.ffmpeg_cmd = path
|
||||
println(path)
|
||||
}
|
||||
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{
|
||||
Filename: path.Join(tmp_dir, fmt.Sprintf("%07v.png", i)),
|
||||
Maze: solved,
|
||||
CellWidth: 5,
|
||||
CellHeight: 5,
|
||||
CellWidth: 2,
|
||||
CellHeight: 2,
|
||||
WallColor: color.Black,
|
||||
PathColor: color.White,
|
||||
SolutionGradient: colorgrad.Warm(),
|
||||
@ -60,7 +61,7 @@ func (v *VideoVisualizer) Visualize(solved_chan <-chan *maze.SolvedMaze) {
|
||||
"-y",
|
||||
"-pattern_type", "glob",
|
||||
"-i", path.Join(tmp_dir, "*.png"),
|
||||
"-r", fmt.Sprint(int(v.Framerate)),
|
||||
"-framerate", fmt.Sprint(v.Framerate),
|
||||
v.Filename,
|
||||
)
|
||||
err = cmd.Run()
|
||||
|
Loading…
Reference in New Issue
Block a user