Elementary graphics in java / scala

I would like to add a real-time graphical representation of what happens behind some scala code. Just a black window of a given size, where I can place the colored pixels in random order (x, y). This is exactly what I will do, in fact.

Which library should I use? I want to stay as simple as possible so as not to mix (say) a complete library for writing games, just for a quick and dirty way to place pixels on a canvas.

+4
source share
1 answer

I would just use the Java 2D Graphics API .

Scala has Java Swing GUI API support; see the scala.swing package in the Scala API documentation.

+6
source

Source: https://habr.com/ru/post/1401995/


All Articles