press space to start iterations is value to control how many colors can scanner detect
thanks for @griffpatch 's amazing tutorial