Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write an applet that will draw random colored (from an array of Color objects):

ID: 642264 • Letter: W

Question

Write an applet that will draw random colored (from an array of Color objects): a. random thick lines - use Line2D objects with rounded edges. Set it up like a horizontal bar chart with a series of lines going from left to right. The x coordinate will be starting from the left edge, the y coordinate will increment a set amount, and the width and height will be random numbers (but keep the height on the chart (not higher than the y's increment) and the width on the applet (you can getSize() or your applet's width). Use a for loop to loop through all the drawn lines with the loop variable being the y coordinate that will increment the lines vertically. 15-2b is shown in the Labs section, it is different because the loop is just counting and it is drawing random General Path Triangle so all sides are random, but has some random() calls, strokes, and the array of Color objects.

Explanation / Answer

Hey i can help you with this. Contact me on hunain60 at gmail

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote