Star spot simulation code