Example #1
0
func app(context *httpcanvas.Context) {
	ani := make([]noc.Animation, 100)
	for i := range ani {
		ani[i] = newMover(100, 100, context)
	}

	noc.AnimateFrames(ani...)
}
Example #2
0
func app(context *httpcanvas.Context) {
	ani := make([]noc.Animation, 100)
	l := len(ani) - 1
	for i := range ani {
		if i == l {
			ani[i] = newMouse(context)
		} else {
			ani[i] = newVehicle(i, context)
		}
	}
	noc.AnimateFrames(ani...)
}