Feedback
- 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
Point
If a function receives a point as an argument it could be several things:
- You can specify two parameters
x, y
directly as arguments of the function. E.g.selection:contains(8, 20)
- You can specify an object with
x
andy
properties. E.g.selection:contains{ x=8, y=20 }
- You can specify an array with two elements:
E.g.
selection:contains{ 8, 20 }
- You can specify a
Point
instance: E.g.selection:contains(Point(8, 20))
Point()
Point()
Point(otherPoint)
Point(x, y)
Point{x=number, y=number}
Point{number, number}
Creates a new Point
instance with the given coordinates (or x=y=0
if they are not specified).
Point.x
local x = point.x
point.x = newX
Point.y
local y = point.y
point.y = newY