class Animation
Animation is a set of pictures (activeFrames) showing in a sequence with given delay between them. |
|
class AnimationFrames
A set of animation frames. |
|
class AnimationManager
Animation manager is what makes animation alive. |
|
class Color
Rgb color. You can create any color from red, green and blue values. RGB values should from in 0..255 range. |
|
class Graphics : Closeable
Use this class to draw on a window. |
|
class Image
An image from file. |
|
class Key
Contains information about one pressed key |
|
class Keyboard
Use this class to work with keyboard |
|
data class KeyboardEvent
Keyboard event. |
|
object KeyCodes |
|
data class KeyModifiers
What modifiers keys were pressed in the moment of when a normal key was pressed. |
|
object Pal16
16 colors palette from old computers. |
|
class Turtle
Allows to use turtle graphics like in Logo language. |
|
open class Window
The graphic window of your program. |
open class ImageError : ToyGraphicsError |
|
class ImageFileError : ImageError |
|
abstract class ToyGraphicsError : RuntimeException |
fun Graphics.drawAnimation(x: Int, y: Int, animation: Animation): Unit
Draws current frame from animation. fun Graphics.drawAnimation(x: Int, y: Int, animation: Animation, angle: Double, anchorx: Int = 0, anchory: Int = 0): Unit
Draws rotated animation. |
|
fun Image(filename: String): Image |
|
fun sleep(ms: Int): Unit
Just do nothing for n milliceconds. |