Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

The Type color [4/11]

Members from type color can be printed out individually. Each member behaves like a variable.

The println statement can print out an entire color at once by outputting the values of members .r, .g and .b.

After executing the program, try printing out sum of the members .g and .b of the variable azure. The result should equal the number 81, of course. Don't put any numbers in the inserted statement.

Loading...