I am currently working on a game in Java and am trying to create a background without using any image files. The image consists of a square divided into 4 triangles, each of which has a different color.
If someone could tell me that someone used Graphics2D and then saved it to BufferedImage , that would be great.
source share