def rgb(mag, cmin, cmax):
       """
       Return a tuple of integers to be used in AWT/Java plots.
       """

       red, green, blue = floatRgb(mag, cmin, cmax)
       return (int(red*255), int(green*255), int(blue*255))

       Return a tuple of integers to be used in AWT/Java plots.
       
recipes/Python/52273_colormap_Returns_RGB_tuple_0_255_scale/recipe-52273.py