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 ; }
Create the function draw to buffer .