code: 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);
              }
          }
      }
docs: Create the function draw to buffer by computing all possible locations.
  
  @param g The graphic buffer.
  @param formula The collision formula.
  @param tw The tile width.
  @param th The tile height.