code: def __init__(self, color):
      rgb = mcolors.to_rgb(color)
      self.im = np.dstack(
          [self.b_and_h - self.color * (1 - np.array(rgb)), self.alpha]
      )
  
file_path: matplotlib/galleries/examples/misc/demo_ribbon_box.py
imports: import matplotlib.pyplot
  import numpy
  from matplotlib import cbook
  from matplotlib import colors
  from matplotlib.image import AxesImage
  from matplotlib.transforms import Bbox, BboxTransformTo, TransformedBbox
label_desc: Use image node_id 1 to create a new RibbonBox object  with example: obj = RibbonBox(color)