# Best way to use two colors in gabor

**URL:** <https://psychtoolbox.discourse.group/t/best-way-to-use-two-colors-in-gabor/73>\
**Category:** Uncategorized\
**Created:** [November 15, 2017, 7:25pm UTC](https://psychtoolbox.discourse.group/t/best-way-to-use-two-colors-in-gabor/73 "2017-11-15T19:25:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![borderm3](https://avatars.discourse-cdn.com/v4/letter/b/f9ae1b/32.png) [@borderm3](https://psychtoolbox.discourse.group/u/borderm3)\
**Post date:** [November 15, 2017, 7:25pm UTC](https://psychtoolbox.discourse.group/t/best-way-to-use-two-colors-in-gabor/73/1 "2017-11-15T19:25:26Z")

</div>

I am looking for a color(chromatic) contrast on the gabor stimuli rather than the black-white contrast.&nbsp; Does anyone know the best way to achieve this functionality?

Thanks

Chris

---

<div class="post-metadata">

**Author:** ![borderm3](https://avatars.discourse-cdn.com/v4/letter/b/f9ae1b/32.png) [@borderm3](https://psychtoolbox.discourse.group/u/borderm3)\
**Post date:** [November 16, 2017, 3:44pm UTC](https://psychtoolbox.discourse.group/t/best-way-to-use-two-colors-in-gabor/73/2 "2017-11-16T15:44:07Z")

</div>

As far as I can tell only one color can be passed into the Screen 'DrawTexture' function.&nbsp; This appears to make contrast from this color to perhaps white or the background.&nbsp; I am interested in having the peaks of the gabor functions as one color and the troughs as another color.
  

The only thing I can think of is drawing two gabors, each different color, and changing the phase of one by pi/2.

  

Thanks

Chris
