Flickering checkerboard with non-linear spacing of concentric rings

Hi! I am trying to build a classic stimulus for visual cortex activation. Right now, I have this working using visual.RadialStim (will post this code below). I’d like to make the spacing of the concentric rings nonlinear, with smaller steps in diameter near the center of the stimulus, and wider steps as the circles get farther from the center. I am having trouble adding in this feature. I think I need to write a custom texture file, but I’m not sure what parameters to use.

Here’s the radial stim that is currently working:
checkerboard=visual.RadialStim(
win=win,
tex=“sqrXsqr”,
size=40,
units=“cm”,
radialCycles=8,
angularCycles=8,
interpolate=False,
color=“white”,
)

All I want to change is the spacing of the concentric circles.

Thank you!