Search:

Type: Posts; User: copeg

Search: Search took 0.10 seconds.

  1. Replies
    7
    Views
    6,220

    Re: Chessboard filling issue

    Thanks Shambolic.

    olemagro, you can get them to 'stick' if you draw the boundary relative to the width of the board, not the screen.


    g2.drawLine(x0, y0, x0, 9 * y0);

    Because your widths...
  2. Replies
    7
    Views
    6,220

    Re: Chessboard filling issue

    You could just iterate over the grid, calling g.fillRect when necessary. Creating objects and moving them via other objects looks like a bit of work for a drawing routine. Something like this:

    ...
Results 1 to 2 of 2