<div dir="ltr">Hi!<div>I have a binary decision making task where the subject needs to find out the diamond or losangle in one of the two sides. In the other one, there is a square and it needs to be identical to the diamond (just the angle position changes). I tried to draw the losangle and it worked, the problem is that the stimulus appears with serrated or burr sides. I tried to fix it putting the cnvs.penwidth and modifying it but it changes a lot the diamond and it needs to be identical to the square. I do not know how to fix it and get the serrated burrs out.</div><div><br></div><div>I wrote the code as this:</div><div><br></div><div> 'Declare variables</div><div>Dim r, centerX, centerY As Integer</div><div><br></div><div>'Create canvas</div><div>Set cnvs = Display.Canvas</div><div>cnvs.FillColor = CColor("White")</div><div>cnvs.Clear</div><div><br></div><div>'Create fixation point</div><div>cnvs.TextColor = CColor ("black")</div><div>cnvs.FontName = "Courier New"</div><div>cnvs.FontSize = "18"</div><div>cnvs.FontBold = CLogical("Yes")</div><div>cnvs.Text 313, 228, "+"</div><div><br></div><div>'Create gray squares</div><div>cnvs.Pencolor = CColor("Gray")</div><div>cnvs.Fillcolor = CColor("White")</div><div>cnvs.Rectangle 255, 205, 55, 62</div><div>cnvs.Rectangle Display.XRes -310, 205, 55, 62</div><div><br></div><div>'Show targets</div><div>cnvs.Pencolor = CColor("black")</div><div>cnvs.Fillcolor = CColor("black")</div><div>If c.getattrib("Target") = "Diamond" Then</div><div>'Write a left diamond<span class="Apple-tab-span" style="white-space:pre"> </span></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Dim P (4) As Point</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>P(0).x = 280</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>P(0).y = 218</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>P(1).x = 296</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>P(1).y = 239</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>P(2).x = 280</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>P(2).y = 256</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>P(3).x = 265</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>P(3).y = 239</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>cnvs.Polygon P, 4</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>cnvs.Rectangle 345, 222, 25, 30</div><div><span class="Apple-tab-span" style="white-space:pre"> </span></div><div>Else</div><div>'Write a Rectangle</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>cnvs.Rectangle 270, 222, 25, 30</div><div>'Write a Diamond</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Dim L (4) As Point</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>L(0).x = 357</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>L(0).y = 218</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>L(1).x = 373</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>L(1).y = 239</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>L(2).x = 357</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>L(2).y = 256</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>l(3).x = 342</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>L(3).y = 239</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>cnvs.Polygon L, 4</div><div><br></div><div><br></div><div>End If</div><div><br></div><div>Sleep (1000)</div><div><br></div><div>Thank you!</div><div>Best regards, </div></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe@googlegroups.com.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/84cc7844-4a1d-489b-9eac-4b86d7468a7f%40googlegroups.com">https://groups.google.com/d/msgid/e-prime/84cc7844-4a1d-489b-9eac-4b86d7468a7f%40googlegroups.com</a>.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />