Rectangle

class Rectangle(ident: String, text: String, dataStructureIdentifier: String, color: String?, textColor: String?, runtime: Double) : MObject

Rectangle

Parameters

color
textColor

Constructors

Rectangle
Link copied to clipboard
fun Rectangle(ident: String, text: String, dataStructureIdentifier: String, color: String? = null, textColor: String? = null, runtime: Double = 1.0)

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getConstructor
Link copied to clipboard
open override fun getConstructor(): String
getInstructionString
Link copied to clipboard
fun getInstructionString(instruction: String, spread: Boolean): String
Get instruction string to be played using Manim
getRuntimeString
Link copied to clipboard
fun getRuntimeString(): String
Get runtime string using runtime provided
hashCode
Link copied to clipboard
open fun hashCode(): Int
restyle
Link copied to clipboard
fun restyle(styleProperties: StylesheetProperty, runtimeString: String): List<String>
toPython
Link copied to clipboard
open override fun toPython(): List<String>
Function for converting linear representation instruction to its corresponding Python instructions
toString
Link copied to clipboard
open fun toString(): String

Properties

className
Link copied to clipboard
open override val className: String
classPath
Link copied to clipboard
open override val classPath: String
ident
Link copied to clipboard
open override val ident: String
pythonVariablePrefix
Link copied to clipboard
open override val pythonVariablePrefix: String
render
Link copied to clipboard
open val render: Boolean = false
Boolean to express whether instruction should be rendered in animation
runtime
Link copied to clipboard
open override val runtime: Double = 1.0
style
Link copied to clipboard
val style: PythonStyle
text
Link copied to clipboard
val text: String