1. Anders Ruud
  2. love
  3. Issues


Issue #440 resolved

ParticleSystem:setColors should be able to accept an array

created an issue

Ref: https://love2d.org/wiki/ParticleSystem:setColors

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

Comments (3)

  1. Matthias Richter
    • 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