← back to roto on ba3a.dev

Outline

object Outline

Draws a one-pixel outline inside the silhouette: every figure pixel with background, or the edge of the canvas, beside one of its edges takes the project's outline colour when there is one, or else the darkest colour of its own ramp. Inside, so the figure keeps the size it was drawn at.

Functions

Link copied to clipboard
fun draw(draft: Draft, zoneColours: List<List<Int>>, outline: Int?): Draft

draft outlined; outline is the project's outline palette label, or null for each ramp's darkest.