Move the slime and paint it the same color as the sample. When you move a slime, the squares it passes through will be painted. If more than one slime passes through, the colors will be mixed.
Dragging the slime causes the slime to move.