@rain1234 Please do provide a reprex.
But I think there is already a great guide on what you're trying to achieve here. If you scroll to the bottom of that guide, you'll be able to find a 'how to' on multi color nodes
I hope that helps.
p.s. reading resources is the best way!