ManimProjectWriter

class ManimProjectWriter(pythonCode: String)

Writer that produces the output animation video and/or the python file

Constructors

ManimProjectWriter
Link copied to clipboard
fun ManimProjectWriter(pythonCode: String)
Creates a new Manim project writer

Functions

createPythonFile
Link copied to clipboard
fun createPythonFile(fileName: String? = null): String
Creates and writes the python code generated to a python file if input fileName is provided, otherwise creates and writes to a temporary file
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
generateAnimation
Link copied to clipboard
fun generateAnimation(fileName: String, options: List<String>, outputFile: String): Int
Generates animation using the python file created beforehand
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String