Issue #440 resolved

ParticleSystem:setColors should be able to accept an array

created an issue


It would be nice if this could also accept a single array containing all the colour values, like I'd be able to store particle colour data in a variable that way.

Comments (3)

  1. vrld
    • changed status to open

    Wouldn't it be more useful/consistent if it accepted multiple tables, each corresponding to one color? Your proposal can be easily done using unpack:

    colors = {180,180,255,255, 255,100,100,255, 200,200,100,255, 0,0,0,0}
  2. Log in to comment