MeepMeep

class MeepMeep @JvmOverloads constructor(windowX: Int, windowY: Int, fps: Int = 60)

The MeepMeep class is the main entry point for the Meep Meep application. It handles the initialization and management of the application window, rendering, and entity management.

See also

Constructors

Link copied to clipboard
constructor(windowSize: Int)
constructor(windowX: Int, windowY: Int, fps: Int = 60)

Creates a MeepMeep instance with specified window

Types

Link copied to clipboard

Enum class representing various background options for the MeepMeep application.

Link copied to clipboard
object Companion

Companion object to hold default entities and fonts used in the MeepMeep application.

Link copied to clipboard

Enum class representing various compass image options for the MeepMeep application.

Properties

Link copied to clipboard

The canvas where all rendering occurs.

Link copied to clipboard

The height of the canvas, publicly accessible.

Link copied to clipboard

The width of the canvas, publicly accessible.

Link copied to clipboard

Manages the color scheme of the application.

Link copied to clipboard

The main application window frame.

Functions

Link copied to clipboard
fun addEntity(entity: Entity): MeepMeep

Adds an Entity to the MeepMeep application.

Link copied to clipboard

Exports the current trajectory as an image for use in posters, portfolios, etc.

Link copied to clipboard

Removes an Entity from the MeepMeep application.

Link copied to clipboard

Requests to add an Entity to the MeepMeep application.

Link copied to clipboard

Requests to remove an Entity from the MeepMeep application.

Link copied to clipboard
fun setAxesInterval(interval: Int): MeepMeep

Sets the interval for the AxesEntity in the entityList.

Link copied to clipboard

Sets the background image for the MeepMeep application.

Sets the background of the MeepMeep application.

Link copied to clipboard

Sets the alpha transparency level for the background image.

Link copied to clipboard

Sets the compass image for the MeepMeep application.

Link copied to clipboard
fun setDarkMode(isDarkMode: Boolean): MeepMeep

Sets the dark mode for the MeepMeep application.

Link copied to clipboard

Sets the display position for the mouse coordinates on the canvas.

Link copied to clipboard
fun setShowFPS(showFPS: Boolean): MeepMeep

Sets the visibility of the FPS display.

Link copied to clipboard
fun setTheme(schemeLight: ColorScheme, schemeDark: ColorScheme = schemeLight): MeepMeep

Sets the theme for the MeepMeep application.

Link copied to clipboard

Starts the MeepMeep application.