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

Lua Command imagecolor

Categories

Parameters

  • id
  • red
  • green
  • blue

Info

Changes color of an image (You can use an online colorpicker to get the values).

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