Changes

Jump to: navigation, search

Teams Winter 2011/team4/project

376 bytes added, 18:59, 10 April 2011
Define the Application
}
</pre>
*Drawing was done in an odd way. The simplest solution we came up with, was to use a square bitmap and recolor its background if any different colors were chosen, and resize resized accordingly. This worked well for the most part, tho we do run into some performance issues if there are too many bitmaps on the screen at once<pre>private void drawsy(BitmapField bmf, int x, int y){ if(alphaSwitch) bmf.setBackground(BackgroundFactory.createSolidTransparentBackground(currentColour == 0 ? Color.GREEN : currentColour, 50)); else bmf.setBackground(grid.getFieldAtIndex(0).getBackground()); screen.add(bmf, x-(bmf.getBitmapWidth()/2), y-(bmf.getBitmapHeight()/2));}</pre>
*The program works with both touch events and scroll wheel events, tho scroll wheel events are still buggy.

Navigation menu