You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: tree.go
    path of file: ./repos/oak/debugtools
    
    the code of the file until where you have to start completion: package debugtools

import (
	"image/color"
	"image/draw"

	"github.com/oakmound/oak/v4/re
    
func (r *Rtree) Draw(buff draw.Image, xOff, yOff float64) {
	if r.DrawDisabled {
		return
	}
	vp := r.Context.Window.Viewport()
	bds := r.Context.Window.Bounds()
	// Get all spaces on screen
	screen := collision.NewUnassignedSpace(
		float64(vp.X()),
		float64(vp.Y()),
		float64(bds.X()+vp.X()),
		float64(bds.Y()+vp.Y()))
	hits := r.Tree.Hits(screen)
	// Draw spaces that are on screen (as outlines)
	for _, h := range hits {
		c := r.OutlineColor
		if found, ok := r.ColorMap[h.Label]; ok {
			c = found
		}
		for x := 0; x < int(h.GetW()); x++ {
			for i := 0; i < r.Thickness; i++ {
				buff.Set(x+int(h.X()+xOff)-vp.X(), int(h.Y()+yOff)+i-vp.Y(), c)
				buff.Set(x+int(h.X()+xOff)-vp.X(), int(h.Y()+yOff)+int(h.GetH())-i-vp.Y(), c)
			}
		}
		for y := 0; y < int(h.GetH()); y++ {
			for i := 0; i < r.Thickness; i++ {
				buff.Set(int(h.X()+xOff)+i-vp.X(), y+int(h.Y()+yOff)-vp.Y(), c)
				buff.Set(int(h.X()+xOff)+int(h.GetW())-i-vp.X(), y+int(h.Y()+yOff)-vp.Y(), c)
			}
		}
	}
}