How to use component Grating to create a Grating

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 2021.2.3
Standard Standalone? (y/n) If not then what?:y
What are you trying to achieve?:
How to use component Grating to create a Grateing

What did you try to make it work?:

I want it to look like that:
image

How do I change the parameters?

Hi! I want to create gratings of different spatial frequency but want the each grating to begin and end with the same coloured band i.e both either white or black. This is because I will be asking the participants to compare the two gratings (of different spatial frequency) and tell whether they can detect a difference between the two gratings. If they both end and begin with different coloured bands, then that would give a hint to the participants of whether they are different or same.