Exemplo n.º 1
0
func (w *Imp) writeNumbers() {
	//
	spec := species.New()
	w.spec[0][0].SetFormat(species.Long)
	for a := uint(0); a < spec.Number(); a++ {
		c := 27 + 20*a
		spec.Write(y0-1, c)
		nat.Write(w.number(spec), y0-1, c+1+lenName+2)
		spec.Inc()
	}
	w.spec[0][0].SetFormat(species.Short)
}
Exemplo n.º 2
0
func New() *Imp {
	//
	w := new(Imp)
	w.name = str.Clr(lenName)
	w.name = "welt"
	for y := uint(0); y < ny; y++ {
		for x := uint(0); x < nx; x++ {
			w.spec[y][x] = species.New()
		}
	}
	w.line, w.column = ny/2, nx/2
	return w
}