An equal mix of positive and negative charged particles form chains and square crystals. Opposite charges attract (blue and yellow stick together), and like charges repel each other (blue repels blue, yellow repels yellow). You can click to add more particles. It's a bit like playing with little magnets.
Some of the code here is based on code from: https://scratch.mit.edu/projects/244151603/