# Multiple Rectangles with text as labels

**URL:** <https://psychtoolbox.discourse.group/t/multiple-rectangles-with-text-as-labels/284>\
**Category:** Uncategorized\
**Created:** [October 24, 2015, 5:55pm UTC](https://psychtoolbox.discourse.group/t/multiple-rectangles-with-text-as-labels/284 "2015-10-24T17:55:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flyingtoo1988](https://avatars.discourse-cdn.com/v4/letter/f/6f9a4e/32.png) [@flyingtoo1988](https://psychtoolbox.discourse.group/u/flyingtoo1988)\
**Post date:** [October 24, 2015, 5:55pm UTC](https://psychtoolbox.discourse.group/t/multiple-rectangles-with-text-as-labels/284/1 "2015-10-24T17:55:12Z")

</div>

Hi, I'm a freshman in psychotoolbox. I want to present multiple rectangles with texts as labels in different positions as the following picture shows. How should I write the script? With Screen('FillRect'')? How to make a rectangle have different colors on the top and bottom? And how to add those labels on the rectangles?  
  
  
Thanks&nbsp; a lot!!!!!!  
  
  
Honghong
