Skip to content

About

ColorInfo is returned by the convert family of functions provided in tileset.lua (see Provided Functions). It has the following fields:

  • r: the r value of the color (number from 0-255)
  • g: the g value of the color (number from 0-255)
  • b: the b value of the color (number from 0-255)
  • a: the a value of the color (number from 0-255)
  • hex: a string hex representation of the color (example: "#00FF00FF")