9 lines
No EOL
172 B
Elixir
9 lines
No EOL
172 B
Elixir
defimpl Vivid.PNG, for: Vivid.Frame do
|
|
alias Vivid.{PNG, Frame}
|
|
|
|
def to_png(frame, file) do
|
|
frame
|
|
|> Frame.buffer(:horizontal)
|
|
|> PNG.to_png(file)
|
|
end
|
|
end |