ix, iy, iw, ih = Intersection(x1, y1, w1, h1, x2, y2, w2, h2)
SetFillStyle(#FILLCOLOR) Box(100, 100, 80, 100, #RED) Box(160, 120, 100, 40, #YELLOW) ix, iy, iw, ih = Intersection(100, 100, 80, 100, 160, 120, 100, 40) Box(ix, iy, iw, ih, #GREEN)The code above computes the intersection of the red and yellow rectangles and visualizes it by drawing a green rectangle.