Ball generators create an unlimited or fixed number of marbles at any rate you want. They can be a random color, specific color, and any size. You can certain sizes specific colors (if you're building a sorter, for example). Contraptions can have triggers, which you set to respond to specific color boxes or balls. Those triggers kick off motion elsewhere in your contraption.
Ball and box killers destroy balls and boxes upon contact.