0

I am developing a (card) game and for the background I need something fancy. On my research I found Microsoft's Solitaire game with this really nice green background, which tries to imitate a card table. Actually it does this really well.

So my question is, how to replicate this in Java2D with minimum resources.

Solitaire screenshot

Flexo
  • 87,323
  • 22
  • 191
  • 272
mythbu
  • 657
  • 2
  • 7
  • 16

1 Answers1

2

You can use a background image to accomplish this effect. You can draw it just like a shape using:

Graphics.drawImage(Image img, int x, int y, ImageObserver observer)

If you dont have the resources for this, concider using a texture that you can tile.

Maarten Blokker
  • 604
  • 1
  • 5
  • 23