Dot Class
Implement the missing parts of the Dot Class, as indicated by the TODO Comments.
- Complete the constructor
- Create the appropriate accessors and mutators
- Create a method to change the color components
- Create a static method for the distance between two dots
Color
The color of each dot is represented by three integer values, one each for the red, green, and blue values of the color. These values can be between 0 and 255. The following are some basic colors that can be represented in this way:
You can get more RGB values from tools such as this online Color Picker.