Adding functions for checking node color and text on canvas.