http://boxmein.x10.mx/tptelements/lua/lua-reference.html#tpt.graphics_func
If you want the shortest overview ever.
ok, sorry for late coment
elements.property(elements.YOUR_ELEMENT_ID, struct(index, colr, colr, colg, colb)) return 1, bit.bor(elem.PMODE_FLAT,elem.FIRE_ADD,elem.PMODE_ADD),100,255,0,0,100,255,0,0 end)end
There is a problem with bit.bor
elements.property(, "Graphics", function(index, colr, colr, colg, colb)
-- return cache, pixel_mode, cola, colr, colg, colb, firea, firer, fireg, fireb
return 1, bit.bor(elem.PMODE_FLAT,elem.FIRE_ADD,elem.PMODE_ADD),100,255,0,0,100,255,0,0
end)