- press ENTER to search or ESC to cancel
Table of content
Globals namespaces
Constants
- Align
- AniDir
- BlendMode
- BrushPattern
- BrushType
- ColorMode
- FilterChannels
- Ink
- MouseButton
- MouseCursor
- RangeType
- SelectionMode
- SpriteSheetDataFormat
- SpriteSheetType
- WebSocketMessageType
Classes/objects
- Brush
- Cel
- Color
- ColorSpace
- Dialog
- Editor
- Events
- Frame
- GraphicsContext
- Image
- ImageSpec
- KeyEvent
- Layer
- MouseEvent
- Palette
- Plugin
- Point
- Properties
- Range
- Rectangle
- Selection
- Site
- Size
- Slice
- Sprite
- Tag
- Tile
- Tileset
- Timer
- Tool
- TouchEvent
- Version
- WebSocket
- Window
Base library
require()
local library = require "library"
Returns a pointer to the given library/module. This function will try
to find the library.lua
file in the same folder of the script that
was executed, or if it's running a plugin, it will
try to find library.lua
from the plugin folder.
Libraries between plugins are not shared, as they will be stored in
the _LOADED
table with the plugin.name as a
prefix (e.g. plugin-name/module
) to avoid conflicts between similar
library names.
More details in the Programming in Lua book: https://www.lua.org/pil/8.1.html
assert()
assert(condition)
Prints an error message when condition
is false
and stops the
execution of the script. This method is used for unit-testing.
print()
print(object)
print(object1, object2, ...)
Prints the given objects (generally strings) into the console (the
Terminal if we're executing the script in --batch
or --shell
mode).