Skip to content

Commit

Permalink
TS conversion step, see #160
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Mar 23, 2022
1 parent cf837e6 commit 68dacaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/demo/sim-like-components/model/BoxOfBalls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @ts-nocheck

/**
* model of a box containing moving balls that bounce off the walls
* BoxOfBalls is a model of a box containing moving balls that bounce off the walls.
*/

import createObservableArray from '../../../../../axon/js/createObservableArray.js';
Expand All @@ -20,12 +20,12 @@ const MIN_X_OR_Y_VELOCITY = 30;
const MAX_X_OR_Y_VELOCITY = 60;

// helper function
function createRandomColor() {
const createRandomColor = () => {
const r = Math.floor( dotRandom.nextDouble() * 256 );
const g = Math.floor( dotRandom.nextDouble() * 256 );
const b = Math.floor( dotRandom.nextDouble() * 256 );
return new Color( r, g, b );
}
};

class BoxOfBalls {

Expand Down

0 comments on commit 68dacaf

Please sign in to comment.