circle.setFill( Color.RED );
Shape
s have a fill color and and a stroke color.
There are many pre-defined colors.
Here are just a few.
See the Oracle documentation for more.
Color.RED Color.WHITE Color.PINK Color.BLACK Color.ORANGE Color.GRAY Color.YELLOW Color.DARK_GRAY Color.GREEN Color.LIGHT_GRAY Color.BLUE Color.BEIGE Color.MAGENTA Color.BROWN Color.CYAN Color.CORNFLOWERBLUE Color.DARKBLUE Color.DARKGREEN Color.FUCHSIA Color.GOLD Color.LIGHTBLUE Color.LIGHTGREEN Color.MAGENTA Color.PURPLE ..... Color.TRANSPARENT
These are static
values from
the class Color
.
These colors are completely opaque, except for Color.TRANSPARENT
.
What color would you use for the fill of a circle if you want just the perimeter (an open circle)?