 
 count = (0 for [0..19])
 colPos = []
+
+plot = new Plot
+
 sim = new Simulation
 $("#params4b").on "click", =>
     sim.stop()

        xm = 0
        ym = 0.275

        #g = (x) ->
        #    (x<0)*(-0.5+(x+0.5)*(2*ym+1)/(2*xm+1)) + (x>=0)*(ym+(x-xm)*(1-2*ym)/(1-2*xm))
        
        #x = [-0.5, 0, 0.5]
        #@p = new Plot x, (g(u) for u in x)
        @p = new Plot(xm, ym)

        #@sun = new Sun xm, ym
        #@h = new Histo
        
    start: () ->

        @velocity = []
        @velocity[0] = new Vector 0, 2
        @velocity[1] = @O()
        @setCollision()
        @setState 0

        #@colPos = []
