Skip to content

Instantly share code, notes, and snippets.

@MACSkeptic
Created April 18, 2010 01:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MACSkeptic/369949 to your computer and use it in GitHub Desktop.
Save MACSkeptic/369949 to your computer and use it in GitHub Desktop.
var updateColors = _collectiveTime > Threshhold;
_collectiveTime += updateColors ? -_collectiveTime : elapsed.Time;
_random = new Random(_seed = updateColors ? 2.SecondsAgo().Millisecond : _seed);
5.TimesWithIndex(column => 5.TimesWithIndex(line => new Block(
origin: new Vector3(_right + -30 + column * 12, _up + (-15 + line * 8), 0),
width: 5,
height: 3,
depth: 8,
color: _colors[_random.Next(_colors.Length)]).Draw()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment