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 CenterFile Exchange에서 Image display and manipulation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by