Skip to content

draw

Input & Output

Add an operation to the drawing buffer. Does not display anything until Draw Flush is used.

Syntax

draw clear 0 0 0 0 0 0

Parameters

ParameterTypeDefaultValues
typeGraphicsTypeclear
  • clear
  • color
  • col
  • stroke
  • line
  • rect
  • lineRect
  • poly
  • linePoly
  • triangle
  • image
  • print
  • translate
  • scale
  • rotate
  • reset
xvalue0—
yvalue0—
p1value0—
p2value0—
p3value0—
p4value0—

Data taken from Mindustry v160.4 by the project generators.

Unofficial fan project, not affiliated with Anuke. Mindustry sprites, fonts and translations © Anuke, used under GPL-3.0; Fira Code under OFL-1.1. Site code is GPL-3.0.