# Concentric rings using RadialStim

**URL:** https://discourse.psychopy.org/t/concentric-rings-using-radialstim/16107
**Category:** Coding
**Created:** [August 31, 2020, 10:29pm UTC](https://discourse.psychopy.org/t/concentric-rings-using-radialstim/16107 "2020-08-31T22:29:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bmbaum](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@bmbaum](https://discourse.psychopy.org/u/bmbaum)
#### Post date: [August 31, 2020, 10:29pm UTC](https://discourse.psychopy.org/t/concentric-rings-using-radialstim/16107/1 "2020-08-31T22:29:50Z")

</div>

Hi,

I’m trying to create a stimulus that are concentric rings; I’m planning to have these drift as expanding or contracting rings by changing the radial phase. Right now I can successfully use RadialStim to make a windmill type of stimulus (spokes) by setting the angularCycles and angularPhase. However, setting radialCycles and radialPhase don’t actually do anything for me, so I’m not sure what the problem is. This is the code I was hoping would work. Also, do I just set angularCycles to 0 in order to get a concentric ring stimulus? Any help would be much appreciated.

```auto
stimulus = visual.RadialStim(
win = win,
units='pix',
size=[256,256],
texRes = 256,
tex = 'sin',
radialCycles = 4,
radialPhase = 0,
color = [1,1,1],
contrast = 1,
pos = (0,0)
)

```

---

<div class="post-metadata">

### Author: ![TParsons](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/tparsons/32/8301_2.png) [@TParsons](https://discourse.psychopy.org/u/TParsons)
#### Post date: [September 1, 2020, 2:53pm UTC](https://discourse.psychopy.org/t/concentric-rings-using-radialstim/16107/2 "2020-09-01T14:53:13Z")

</div>

It could just be that it needs an update after setting `angularCycles` and `angularPhase` - after you set these, try calling `stimulus.draw()` and, if that doesn’t work, `stimulus._updateEverything()`.

---

<div class="post-metadata">

### Author: ![bmbaum](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@bmbaum](https://discourse.psychopy.org/u/bmbaum)
#### Post date: [September 2, 2020, 6:04pm UTC](https://discourse.psychopy.org/t/concentric-rings-using-radialstim/16107/3 "2020-09-02T18:04:14Z")

</div>

I tried your suggestions, neither is doing the trick. It draws a stimulus it’s just that it’s a uniform intensity of 0.5. I’ve seen others suggest making a grating texture via visual.filters.makeGrating and displaying that through RadialStim with an orientation of 90°, but for me it still draws it like spokes on a wheel.
