 ###*
 Returns the the nearest grid resolution less than or equal to the number. 
 
-@name snap
-@methodOf Number#
-
-@param {Number} resolution The grid resolution to snap to.
-@type Number
-@returns The nearest multiple of resolution lower than the number.
-
 <code><pre>
     7.snap(8) 
 => 0


Floors the number for purposes of factorization.

@name primeFactors
@methodOf Number#

@type Array
@returns An array containing the factorization of this number.

<code><pre>
   60.primeFactors()
=> [2, 2, 3, 5]

   37.primeFactors()
=> [37]
</pre></code>
###
Number::primeFactors = ->
  factors = []

Returns the two character hexidecimal 
representation of numbers 0 through 255

<code><pre>
   255.toColorPart()
=> "ff"

   0.toColorPart()
=> "00"

   200.toColorPart()
=> "c8"
</pre></code>

@name toColorPart
@methodOf Number#

@type String
@returns Hexidecimal representation of the number
###
Number::toColorPart = ->
  s = parseInt(this.clamp(0, 255), 10).toString(16)
