The input analog signal (green voltage you can adjust) is compared to the output of a DAC which is increased until it matches the input analog signal voltage. The value of the binary value fed into the DAC in order to match the analog input is taken as the converted digital value.