How to present a dots array in which half of dots are white and half are black?

using dotstim or elementsarraystim can create dots with same colors, but how to create dots with different colors?

ElementArrayStim has a colors parameter, which allows each dot to have a different color.