Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

The Type color [7/11]

Each member from type color can be individually changed.

Exercise:

1. Add another statement at the end of the source code. In it, modify the value of variable myColor by setting the blue component to value 10.

Solution

myColor.b = 10;

2. Draw a disc, below the third disc, in the color stored in the variable myColor.

Solution

disc(650, 500, 100, myColor);

Loading...