how to make a mosaic-Mosaic formation
Take RGB for example, R (red red), G (green green), and B (blue blue). Each of these three colors has an intensity value in the range of 0~255. The higher the number, the brighter red, for example, is the R value 255, the G value 0 and the B value 0. The color light can be diluted and brighten by the absence of light. Such as blue light and white light meet, the result is more bright blue color light. So the colors of R, G, and B differ in color. For example, a picture of them, there are many different colors of small patches, due to the small and dense pixel the color very much, and is a mosaic circle range (color small integer range, so generally use rectangular or square to circle), put in the circle of small patches the R value of all add up, calculated the average number of. Then add all the G values and find the mean. Then add all the B values to the mean. The average number of above of the total R value for the R value, the average number of above of the total G value for the G value, the average number of above of the total B value for the B value, forming a color, then the color painted circle, thus forming a mosaic.