x, y, and size should be doubles (stepSize and scaleFactor are doubles)