Hello. I'm quite new to Java, but I've worked on Graphics before.
I have a couple of questions which are:
I want to make a night sky in Java with stars which randomly switch to big stars from small and back, repeating for a set time. I also want the changes of the star size to occur with opacity, so that they appeared to glisten.
Another thing I want to consider is I want to create a crescent moon, which will get off of the screen in a smooth movement across the screen, replaced with a smooth movement of sun with the background color to change in order to imitate the sky during the morning’s sunrise, and stars disappear as the sun gets to the center of the screen.
This is what I have so far, didn’t want to make any mistakes in the beginning in order to make the path easier to go.
import java.awt.*;
import java.applet.*;
public class NightSky extends Applet
{
public void paint(Graphics g)
{
}
}