Commands/Lua

Reference for console commands, Lua hooks and Lua commands in CS2D.

CS2D Command CS2D Console Commands

Lua Hook Lua Hooks

Lua Command Lua Commands

Category: all (86)

Lua Command imagecolor

Categories

Parameters

  • id
  • red
  • green
  • blue

Info

Changes the color of an image (use a colorpicker to get the values).
The color is specified as red, green and blue values. Each ranging from 0 (black) to 255 (full color brightness).

Sample 1: Creating an image and making it green
local id=image("gfx/sprites/flare2.bmp",0,0,2)
imagecolor(id,0,255,0))