phetsims / plinko-probability

"Plinko Probability" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
5 stars 7 forks source link

Design of 1-4 rows of pegs #99

Closed amanda-phet closed 7 years ago

amanda-phet commented 7 years ago

When there are only 3 or 4 rows of pegs, the size of the pegs and balls looks good to me.

4-rows 3-rows

However, at 1 and 2 rows, the peg seems unusually large. 2-rows 1-row 1

I think the peg needs to max out at a certain size. Can you make the peg size for 1-2 rows match the peg size at 3 rows? So, the peg would not grow in size below 3 rows of pegs.

veillette commented 7 years ago

plinko probability screenshot 8 plinko probability screenshot 7 plinko probability screenshot 6

amanda-phet commented 7 years ago

The peg seems pretty small. Are you sure that is the size at 3 rows? It looks like the size at 4 rows, to my eye.

Perhaps we should just focus on the 1-row case. This is the mockup from April. Can get close to this size for 1 row, and see how the others scale after that? I'm not sure what kind of scaling logic you are using, though.

screen shot 2017-06-06 at 2 32 37 pm

veillette commented 7 years ago

@amanda-phet: Row 1 and 2 are essentially custom made so we can adjust the radius of the balls, the radius of the pegs and the the vertical offset of the pegs easily. I'll use your screenshot from row 1 and adjust row 2 accordingly.

amanda-phet commented 7 years ago

That sounds great.

veillette commented 7 years ago

plinko probability screenshot 13 plinko probability screenshot 14 plinko probability screenshot 15

veillette commented 7 years ago

@amanda-phet , based on your screenshort, I rebased the scale of the balls as well.

The pegs are rescaled according to be inversely proportional to the number of bins rather than the number of rows The pegs size is proportional to 1/(rows+1). This affects the scaling for all rows but is is hard noticeable for larger number or rows, but it makes a larger difference when the number of rows is small.

Currently for rows 3-26, the balls are bigger than the pegs, but for rows 1 and 2 and three the balls are scaled down. For Row=1, the ball size is reduced by 75% of what is would be according to our simple scaling, For Row=2, the ball size is reduced by 80% of what is would be according to our simple scaling, For Row=3, the ball size is reduced by 86% of what is would be according to our simple scaling,

For row four and above it follow the simple scaling rule.

I have included screenshots above.

amanda-phet commented 7 years ago

It looks great to me!

veillette commented 7 years ago

Thank @amanda-phet. Closing this issue.