It's pretty quick in illustrator.
Make a white box and a black box opposite of each other. Blend at a specified step, expand and you have new boxes to sample from.
I went ahead and made you one in 5 secs and attached JPG and PDF editable in Illustrator.
I gave you 25 steps, 50 steps, 75 steps...