Device and non-transitory computer-readable medium
A device includes a processor and a memory. The memory is configured to store a plurality of group information pieces, the number of thread colors to be used in embroidery sewing and computer-readable instructions. Each of the group information pieces is associated with one more thread colors among a plurality of thread colors. The computer-readable instructions cause the processor, when executed, to perform processes that includes acquiring image data including pixels, replacing a color of each of the pixels with a thread color from the thread colors, calculating a frequency of using each of the thread colors, selecting, until the number of thread colors selected from the thread colors is equal the number of thread colors to be used stored in the memory, one thread color from each of the group information pieces sequentially, based on the group information pieces stored in the memory and on the calculated frequency.