// set the default ball radius using the largest possible radius, that is the minimum number of rows.
var defaultNumberOfRows = PlinkoProbabilityConstants.ROWS_RANGE.min;
var defaultBallRadius = modelViewTransform.modelToViewDeltaX( GaltonBoard.getPegSpacing( defaultNumberOfRows ) * PlinkoProbabilityConstants.BALL_SIZE_FRACTION );
This is in fact not using the default number of rows, it's using the min number of balls. The default is 12, the min is 5.
So which is wrong - the implementation or the documentation?
Based on the comment... I'm guessing that (for image quality) the correct thing to do is to use the largest ball radius. Which would mean using the minimum number of rows.
In BallsNode:
This is in fact not using the default number of rows, it's using the min number of balls. The default is 12, the min is 5.
So which is wrong - the implementation or the documentation?