Skip to content

packcolor

Operations

Pack [0, 1] RGBA components into a single number for drawing or rule-setting.

Syntax

packcolor result 1 0 0 1

Parameters

ParameterTypeDefaultValues
resultvalueresult
rvalue1
gvalue0
bvalue0
avalue1

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.