Equalizer Library

equalizer

equalizer.float_rgb(mag, cmin, cmax)

Return a tuple of floats between 0 and 1 for the red, green and blue amplitudes.

equalizer.rectangle_helper(x0: int, y0: int, height: int, width: int, bitmap, color_index: int, palette, bitmaptool: bool = True) None

rectangle_helper function Draws a rectangle to the bitmap given using bitmapstools.bitmap or vectorio.rectangle functions

Parameters:
  • x0 (int) – rectangle lower corner x position

  • y0 (int) – rectangle lower corner y position

  • width (int) – rectangle upper corner x position

  • height (int) – rectangle upper corner y position

  • color_index (int) – palette color index to be used

  • palette – palette object to be used to draw the rectangle

  • bitmap – bitmap for the rectangle to be drawn

  • bitmaptool (bool) – uses draw_line() to draw the rectangle. when False uses Rectangle()

Returns:

None

Return type:

None

equalizer.rgb(mag, cmin, cmax)

Return a tuple of integers to be used in AWT/Java plots.