code: public static ImageBuffer createFunctionDraw(CollisionFormula collision, int tw, int th)
      {
          final ImageBuffer buffer = Graphics.createImageBuffer(tw, th, ColorRgba.TRANSPARENT);
          final Graphic g = buffer.createGraphic();
          g.setColor(ColorRgba.PURPLE);
  
          createFunctionDraw(g, collision, tw, th);
  
          g.dispose();
          return buffer;
      }
docs: Create the function draw to buffer.
  
  @param collision The collision reference.
  @param tw The tile width.
  @param th The tile height.
  @return The created collision representation buffer.