Board Thread:General Mod Discussion/@comment-31507215-20180410030121/@comment-27190591-20180410174952

You could create a BufferedImage which has a function allowing you to set single pixel colors. Then draw the image. The code could look like this:

Graphics2D graphics = ... BufferedImage image = new BufferedImage(WIDTH,HEIGHT,BufferedImage.TYPE_INT_RGB); image.setRGB(X,Y,RGB_COLOR); graphics.drawImage(image,X,Y,null);