# How can I change the color value of ParticleSystem component

**URL:** <https://forum.playcanvas.com/t/how-can-i-change-the-color-value-of-particlesystem-component/16317>\
**Category:** Help & Support\
**Created:** [December 11, 2020, 8:22am UTC](https://forum.playcanvas.com/t/how-can-i-change-the-color-value-of-particlesystem-component/16317 "2020-12-11T08:22:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Leonidas](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/leonidas/32/6495_2.png) [@Leonidas](https://forum.playcanvas.com/u/Leonidas)\
**Post date:** [December 11, 2020, 8:29am UTC](https://forum.playcanvas.com/t/how-can-i-change-the-color-value-of-particlesystem-component/16317/2 "2020-12-11T08:29:37Z")

</div>

Hi @hoanguyen,

Check the following thread, it’s old but I think this holds true to day. Particles use a pc.CurveSet for coloring so it’s a bit more complex than setting a single value:

> [@ParticleSystem change color on runtime](https://forum.playcanvas.com/t/particlesystem-change-color-on-runtime/1653):
>
> Hello, I am doing something like this to change in code the color of a ParticleSystem. this.entityParticleEngine.particlesystem.colorGraph.curves[0].keys[0][1] = 0.2; this.entityParticleEngine.particlesystem.colorGraph.curves[1].keys[0][1] = 0.2; this.entityParticleEngine.particlesystem.colorGraph.curves[2].keys[0][1] = 0.85; It works correctly if I do this during initialization. But on runtime, in the update(dt) function, it doesn’t affect the color. Do we have do some sort of update on …

[https://developer.playcanvas.com/en/api/pc.ParticleSystemComponent.html#colorGraph](https://developer.playcanvas.com/en/api/pc.ParticleSystemComponent.html#colorGraph)

---

_[View the full topic](https://forum.playcanvas.com/t/how-can-i-change-the-color-value-of-particlesystem-component/16317)._
