How are guys matching factory paint ?

Paint shop here took a devise out to the car and placed it against the quarter panel. It scanned the paint, uploaded it and spit out a code.