You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What a great idea making it more colorful! I would suggest that you extend the Particle type, so that there is a entry for its Color. Then you would (mostly) only need to change the intial model for each simulations by giving each particle a Color.
By adding the function drawParticle_2 you would have to distinguish between this function and drawParticle which becomes quiet hard in the current setup.
I hope this helps.
I created the branch feature/multiple_colors so that you can have a look, how I would have solved the problem. These changes will not be merged into main (same as for #8).
Feel free to ask further question. If there are none, I would like to close the issue.
I am trying to implement multiple coloured particles, however I am not able to add them into the same picture.
For example, I created a drawParticle_2 function:
But I am not able to understand how I can add these green particles into the picture along with the existing blue particles.
Could you perhaps add a feature to add multiple coloured spheres ?
The text was updated successfully, but these errors were encountered: