30
4
The 16-color CGA palette (also known as the HTML colors) is a set of 16 colors used by early graphics adapters. The goal of this challenge is to output all 16 of them, in hex format (RRGGBB
), in ascending order by hex value, separated by newlines. Thus, the output should be exactly this:
000000
000080
0000FF
008000
008080
00FF00
00FFFF
800000
800080
808000
808080
C0C0C0
FF0000
FF00FF
FFFF00
FFFFFF
A single trailing newline is allowed, but not required.
Minor edit to fix this answer:
“0FC8”
, as we have00
,FF
,C0
, and80
. – Sherlock9 – 2016-12-10T06:02:08.640Oh wow, I did not notice! Thank you. – Jonathan Allan – 2016-12-10T06:15:22.563