Set whether the brush coordinates get floored to snap to the nearest pixel.
When the brush size is an even number, offset the snapping by half a pixel so that even size brush strokes can be correctly centered
Enable the input for opacity when this tool is selected
Enable the input for shapes when this tool is selected
Enable the input for brush size when this tool is selected
Enable the input for softness when this tool is selected
Function that runs per pixel when the brush is used. Mutually exclusive with draw().
Local X coordinate relative to the brush center
Local Y coordinate relative to the brush center
Current color of the pixel on the texture
Local opacity of the current pixel on the brush, between 0 and 1. Opacity falls of to the sides of the brush if the brush is set to smooth. Opacity from the Opacity slider is not factored in yet.
Additional context to the paint stroke
Alternative way to create a custom brush, mutually exclusive with the changePixel() function. Draw runs once every time the brush starts or moves, and also along the bath on lines.
Function that runs when a new brush stroke starts.
Function that runs when a new brush stroke starts. Return false to cancel the brush stroke
Function that runs when a new brush stroke starts. Return false to cancel the brush stroke
Enable the input for blend modes when this tool is selected