package render import "github.com/pnx/go-raytracer/graphics" func DrawPalette(ctx *graphics.Context, w, h int32) { y := int32(0) for i := range int32(255) { if i > 0 && (i%0x10) == 0 { y += 1 } ctx.DrawRect(int32((i%0x10)*w), int32(y*h), int32(w), int32(h), byte(i)) } }