https://subethasoftware.com/2013/04/05/extended-color-basic-to-arduino-sketch-part-3/
Extended Color BASIC to Arduino Sketch, part 3