private static void createFunctionDraw ( Graphic g , CollisionFormula formula , int tw , int th ) { for ( int x = 0 ; x < tw ; x ++ ) { for ( int y = 0 ; y < th ; y ++ ) { renderCollision ( g , formula , th , x , y ) ; } } }
Create the function draw to buffer by computing all possible locations .