/** * Creates a BagOfBalls with the given number of balls, and all the balls with the given * Appearance. * * @param numberOfBalls int Number of balls to create. * @param sizeInMeters double Size of each ball in meters. * @param name String Name of the BagOfBalls * @param appearance Appearance for each of the balls. * @param parentRegistry YoVariableRegistry to register the BagOfBalls with. * @param yoGraphicsListRegistry YoGraphicsListRegistry to register the BagOfBalls * with. */ public BagOfBalls(int numberOfBalls, double sizeInMeters, String name, AppearanceDefinition appearance, GraphicType graphicType, YoVariableRegistry parentRegistry, YoGraphicsListRegistry yoGraphicsListRegistry) { this(sizeInMeters, name, toList(appearance, numberOfBalls), graphicType, parentRegistry, yoGraphicsListRegistry); }