last mods
turn on/off bits to get the correct pattern
coloring acording binary pattern
getting  centroid bit
ploting as required