});
context.draw();
}
@Test
public void fillTexturedTriangleWithColor() throws IOException, InterruptedException {
final Triangle triangle = getTriangle(false, false);
final ch.blackspirit.graphics.Image image = imageFactory.createImage(this.getClass().getResource("/player1.png"), true);
context.setGraphicsListener(new GraphicsListener() {
public void draw(View view, Graphics graphics) {
graphics.clear();
graphics.fillTriangle(triangle, true, image);