How to draw bounding box of sprite with some color

Here is a simple example of rendering a Bounding Box: https://playcanvas.com/project/1059007/overview/rendering-bounding-boxes

Use WASD to move one of the boxes, when it intersects with another box, the bounding box changes color.