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.
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 件のコメント
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 件)
参考
カテゴリ
Help Center および File Exchange で Image display and manipulation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!