Is there any way to update the particles dynamically? #54
              
                
                  
                  
                    Answered
                  
                  by
                    matteobruni
                  
              
          
                  
                    
                      kabirverman
                    
                  
                
                  asked this question in
                Q&A
              
            -
| Let's say I want to update state and change the particle color. Is there a way I can keep the same particles that are alive on screen and just update their colors? To clarify, I don't want to destroy them and spawn new particles with the correct color. Any Help would be appreciated! | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            matteobruni
          
      
      
        Oct 12, 2023 
      
    
    Replies: 1 comment 3 replies
-
| Yes, but you need to write a custom plugin for that | 
Beta Was this translation helpful? Give feedback.
                  
                    3 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
https://github.com/tsparticles/tsparticles/tree/main/updaters/color
This is the plugin responsible for the color updates, it can be a starting point.