Scenic.Script.finish

You're seeing just the function finish, go back to Scenic.Script module for more information.

Specs

finish(ops :: t()) :: final_script :: t()

Finish a script, preparing it to be sent to the ViewPort.

This function cleans up the script, which should have been created by first calling start/0 then and series of calls to Scenic.Script functions that add commands to the script.

finish/1 cleans up the script, reverses it, and runs an optimization pass.

The resulting script is ready to be stored in the ViewPort.