draw

abstract fun draw()(source)

The draw method is responsible for rendering the current state of the program. This method is called automatically for each frame during the runtime of the program. It serves as the main function to perform all visual updates, including drawing shapes, updating visuals, and handling animations based on the current state.

This function is typically implemented to contain logic for rendering content on the screen.