Reputation: 11
I want to create an animation of Kotlin code with Manim
. I am using v0.19.0
So I have tried the Code
mobject for that. But this raises an error stating,
AssertionError: unknown new state 'cargs'
This is my manim
code:
class KotlinCode(Scene):
def construct(self):
code = Code(
code_file="main.kt",
formatter_style="dracula",
paragraph_config={"font": "JetBrains Mono NL", "font_size": 14},
add_line_numbers=False,
)
self.add(code)
main.kt
file:
fun main() {
println("Hello, world!")
}
I also tried with c++ file it is fine. But Kotlin gives error even though its syntax is correct.
Upvotes: 0
Views: 28