Why isn't my (psychtoolbox) code to draw a diamond (using FramePoly) utilizing the line thickness defined?

7 ビュー (過去 30 日間)
I am trying to draw a purple diamond that is centered around a box; this diamond is supposed to have a line thickness that is double the line thickness of the box. The line thickness of the boxes is 4 pixels. I am using psychtoolbox (PTB) and the 'FramePoly' command to draw this diamond. In the PTB documentation for 'FramePoly' it states that the fifth argument in the command is used as the penWidth, which I believe is the same as the line thickness of the diamond. Below, I have included the relevant parts of the script and I have defined the line thickness as 8 pixels (see variable named 'diamondThick'); however, no matter what I change the diamondThick value to, it does not change the line thickness of the diamond that displays. The line thickness that is being displayed is similar to the line thickness of the gray box (but I can't really tell exactly); however, I can tell the value the program is using for the line thickness of the diamond is not the box line thickness (see variable named 'boxthick') because when I change the boxthick value the line thickness of the boxes change but the line thickness of the diamond stays the same. I have tried many different values for diamondThick, but no matter what I change it to, there is no noticeable change in the line thickness of the diamond.
I have also included an image of the display I am getting to help in understanding.
<<
>>
  2 件のコメント
Michael Faulks
Michael Faulks 2017 年 2 月 10 日
Also in the code that I included, the color defined in the code that draws the diamond is labeled as orange. This should be purple so just ignore that please.
Walter Roberson
Walter Roberson 2018 年 10 月 30 日
Psychtoolbox is a third party product that has its own support available. It is mostly implemented in MATLAB, but with operating system specific non MATLAB components. It is a fair sized program. The most active volunteers here do not happen to use it. You could continue to wait for a volunteer with a good knowledge of the product to happen to wander by and find your question, but we would recommend that you use the support mechanism that the third party product provides.

サインインしてコメントする。

回答 (1 件)

Jane Han
Jane Han 2018 年 10 月 30 日
I have exactly the same problem, searching for the answer.

カテゴリ

Help Center および File ExchangeImage display and manipulation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by