HOME | DD

undefinedreference — Done

Published: 2022-05-14 02:13:40 +0000 UTC; Views: 176; Favourites: 1; Downloads: 1
Redirect to original
Description Direct link with TODO www.deviantart.com/undefinedre… . Only this time the machine did the work. This should be the entire range of 30 basic ancient 'web safe' colors, apart from black (000000) and white (ffffff). A follow-up TODO would be to produce ALL 216 'web safe' colors, which would involve values like 660066 in addition to ff0066 etc.

Edit: funny: it worked thanks to a coding error. It turns out I could delete an entire block of complex index juggling (I had overlooked a shift which already does the trick).

What it looks like:


    00    33    66    99    cc    ff
1:  ff0000 BG                            R red
2:  ff3300 B     G                       R
3:  ff6600 B           G                 R orange
4:  ff9900 B                 G           R
5:  ffcc00 B                       G     R ML

6:  ffff00 B                            RG yellow
7:  ccff00 B                       R     G
8:  99ff00 B                 R           G
9:  66ff00 B           R                 G
10: 33ff00 B     R                       G MR

11: 00ff00 RB                            G green
12: 00ff33 R     B                       G
13: 00ff66 R           B                 G
14: 00ff99 R                 B           G
15: 00ffcc R                       B     G ML

16: 00ffff R                            GB cyan
17: 00ccff R                       G     B
18: 0099ff R                 G           B
19: 0066ff R           G                 B
20: 0033ff R     G                       B MR

21: 0000ff GR                            B blue
22: 3300ff G     R                       B
23: 6600ff G           R                 B purple
24: 9900ff G                 R           B
25: cc00ff G                       R     B ML

26: ff00ff G                            BR magenta
27: ff00cc G                       B     R
28: ff0099 G                 B           R
29: ff0066 G           B                 R
30: ff0033 G     B                       R MR

32: ff0000 BG                            R <- return


Or in terms of pointers (indices):

----------------------------------------------------------------
   00    33    66    99    cc    ff
1:  RM                            L
2:  R     M                       L
3:  R           M                 L
4:  R                 M           L
5:  R                       M     L      <- ML-switch
6:  R                            ML
7:  R                       M     L
8:  R                 M           L
9:  R           M                 L
10: R     M                      L      <- MR-switch
Related content
Comments: 0