The type FlashController is defined as an inner type in the file FlashingShapeNode.js. It should be pulled out into a separate file to facilitate reuse and readability. Also, the parameters onTime, offTime, numFlashes, flashOnAtStart and flashOnAtEnd should be made into options using PhET's usual options pattern.
The type
FlashController
is defined as an inner type in the fileFlashingShapeNode.js
. It should be pulled out into a separate file to facilitate reuse and readability. Also, the parametersonTime
,offTime
,numFlashes
,flashOnAtStart
andflashOnAtEnd
should be made into options using PhET's usual options pattern.