Traditional Culture Encyclopedia - Traditional festivals - Snake game is changed to run C language code with background color.

Snake game is changed to run C language code with background color.

//Back//Color? 3 is the background color code? A is the foreground color (font) code, which can be changed freely according to these codes?

System (? "color? 3A?” ); ? /*? 0? =? Black?

1? =? Blue?

2? =? Green a? =? Ondin

3? =? Lake blue? b? =? pale green

4? =? Red c? =? rosiness

5? =? Purple d? =? light purple

6? =? Yellow e? =? faint yellow

7? =? White f? =? Bright white

8? =? grey

9? =? light blue

*/