<div dir="ltr"><div><p class="MsoNormal"><span lang="EN-US" style="font-size: 10pt; font-family: Arial; background-position: initial initial; background-repeat: initial initial;">Dear David,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size: 10pt; font-family: Arial; background-position: initial initial; background-repeat: initial initial;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: normal;">I would like to learn code and it is because of that I prefer to use Inline.</span><br></span></p><div>About the "write" think, I just put on that way to try to explain what I wanted to do (I know you don't do this in this way).</div><p class="MsoNormal"><span lang="EN-US" style="font-size: 10pt; font-family: Arial; background-position: initial initial; background-repeat: initial initial;"></span></p><div><span style="font-family: Arial; font-size: 10pt; line-height: 18px;">It has been just a
month since I first began to program. It is fact I need courses and as you don’t
know me, there is the possibility I will be unable to understand your responses
about any other code you could be able to write about my doubts but, really? Do
you really need to answer in this way? I am learning and off course I will
write dumb mistakes but it does not mean someone could help me to understand,
instead of saying “I get the feeling that you need to get a fair</span><span class="apple-converted-space" style="font-family: Arial; font-size: 10pt; line-height: 18px;"> </span><br></div><p class="MsoNormal"><span lang="EN-US" style="font-size: 10pt; font-family: Arial;">
<span style="background-position: initial initial; background-repeat: initial initial;">bit of
background knowledge before anything said here will<span class="apple-converted-space"> </span></span><span style="background-position: initial initial; background-repeat: initial initial;">help.”
I know I need background! Off course! If I didn’t why would I be here in this
forum and using E-prime? I will use
Python straight ahead!<o:p></o:p></span></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size: 10pt; font-family: Arial; background-position: initial initial; background-repeat: initial initial;">Finally, I've never
thought to do this on my own and it is because of that I entered on this forum. </span></p><p class="MsoNormal"><span lang="EN-US" style="font-size: 10pt; font-family: Arial; background-position: initial initial; background-repeat: initial initial;">Anyway, best for you too and thank you for the tips and links! </span><span lang="EN-US"><o:p></o:p></span></p></div><div><br></div><div><br><br>Em segunda-feira, 13 de janeiro de 2014 19h59min07s UTC, McFarlane, David escreveu:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Camila,
<br>
<br>Just a few comments...
<br>
<br>1) I really do not get why you do not want to do this with Slides,
<br>and then get rid of all the inline code.
<br>
<br>2) Lines like
<br> c.getattrib("TargetImage") = "DiamondLeft.bmp"
<br>are illegal. c.getattrib("TargetImage") returns a value, and it
<br>makes no sense to assign a value to a returned value. If you have
<br>trouble with that, then it means that you need to take a course in
<br>Introduction to Programming.
<br>
<br>3) Judging from other mistakes (e.g., '"WRITE" = "DiamondLeft.bmp"',
<br>which makes no sense), I get the feeling that you need to get a fair
<br>bit of background knowledge before anything said here will
<br>help. Once again, this points toward taking a course in Introduction
<br>to Programming.
<br>
<br>4) But if you really want to do it on your own, then start with the
<br>general comments at <a href="https://groups.google.com/d/topic/e-prime/VCXgOWjKtCg" target="_blank" onmousedown="this.href='https://groups.google.com/d/topic/e-prime/VCXgOWjKtCg';return true;" onclick="this.href='https://groups.google.com/d/topic/e-prime/VCXgOWjKtCg';return true;">https://groups.google.com/d/<wbr>topic/e-prime/VCXgOWjKtCg</a> .
<br>
<br>Best,
<br>-- David McFarlane
<br>
<br>
<br>At 1/13/2014 11:10 AM Monday, Camila Gomes Victorino wrote:
<br>>Hi David!
<br>>Thank you for your answer!
<br>>As I wrote my TrialProc as a queue of InLines (each one composing a
<br>>canvas, showing different figures until feedback), using the Slide
<br>>Image would create other canvas, different from the others and I
<br>>don`t know if it is possible to mix two canvas in one, for example,
<br>>some inline figures to the Images in SlideImage, all at once, so
<br>>I employed your idea, creating two images.bmp (one with left diamond
<br>>and right square and other with right diamond and left square) and
<br>>created a row in the TrialList, called TargetImage, linking each
<br>>image file to a specific target in the trialList. After that, I came
<br>>back to the Inline where the serrated diamond was written and tried
<br>>to write the code to load and show this two images, based on the
<br>>TrialList. The problem is I am having trouble to discover what to do.
<br>>
<br>>In the part where the serrated diamond was written, I changed to:
<br>>'Show targets
<br>>If c.getattrib("Target") = "Diamond" Then
<br>>c.getattrib("TargetImage") = "DiamondLeft.bmp"
<br>>Else
<br>>'Write a Diamond
<br>>c.getattrib("TargetImage") = "DiamondRight.bmp"
<br>>End If
<br>>
<br>>When I compile it says: "Can't assign to constant". I suspect I need
<br>>to load the images first but I don`t know how to do it! Or I need to
<br>>declare and set the bmp file (no clues!!).
<br>>
<br>>Other solution I figured out was to write a code to load and show
<br>>the images directly. For example:
<br>>'Show targets
<br>>If c.getattrib("Target") = "Diamond" Then
<br>>"WRITE" = "DiamondLeft.bmp"
<br>>Else
<br>>'Write a Diamond
<br>>"WRITE" = "DiamondRight.bmp"
<br>>End if
<br>>
<br>>The problem is I tried everything! I went to E-prime Help and copied
<br>>and tried to use Canvas.LoadImage, ImageDisplay.Filename and
<br>>ImageDisplay.Load but I`ve never succeed!
<br>>Maybe it is a simple answer but I am a novice in programming. Any advice?
<br>>
<br>>Thank you for your help!
<br>>Regards, Camila.
<br>>
<br>>Em quinta-feira, 9 de janeiro de 2014 19h24min20s UTC, McFarlane,
<br>>David escreveu:
<br>>Hmm. I normally decline to look at extensive code samples or
<br>>attached programs, but you made it very easy and I was curious. So I
<br>>ran your code, and indeed got bad jagged edges for the diamonds. I
<br>>thought I could just attribute this to low Display resolution (640 x
<br>>480 default), but got the same bad results at all other resolutions
<br>>(max 1680 x 1050 on my machine), working with either EP1 or EP2. So
<br>>it seems that the E-Basic Canvas.Polygon command simply does not do a
<br>>good job of anti-aliasing (see
<br>><<a href="http://en.wikipedia.org/wiki/Spatial_anti-aliasing" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FSpatial_anti-aliasing\46sa\75D\46sntz\0751\46usg\75AFQjCNHV3FiWleQm2-NlmT_ENbU2DHhWbQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FSpatial_anti-aliasing\46sa\75D\46sntz\0751\46usg\75AFQjCNHV3FiWleQm2-NlmT_ENbU2DHhWbQ';return true;">http://en.wikipedia.org/<wbr>wiki/Spatial_anti-aliasing</a>><a href="http://en.wikipedia.org/wiki/Spatial_anti-aliasing" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FSpatial_anti-aliasing\46sa\75D\46sntz\0751\46usg\75AFQjCNHV3FiWleQm2-NlmT_ENbU2DHhWbQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FSpatial_anti-aliasing\46sa\75D\46sntz\0751\46usg\75AFQjCNHV3FiWleQm2-NlmT_ENbU2DHhWbQ';return true;">htt<wbr>p://en.wikipedia.org/wiki/<wbr>Spatial_anti-aliasing</a>
<br>>for background information).
<br>>
<br>>Instead, you should make image files for your diamond and other
<br>>shapes, then simply load those images to the Display as needed. This
<br>>has the advantage that you can use good software to prepare your
<br>>images and it will simplify your E-Basic code as you can simply
<br>>redraw the same image to different defined locations.
<br>>
<br>>Come to think of this, using image files and Slides, you should be
<br>>able to do this with no E-Basic code at all (I should have thought of
<br>>this first, as this is the norma E-Prime way!). Just make a Slide
<br>>with SlideImage sub-objects to hold your square and diamond images,
<br>>then use attribute references from a List to assign the Position X &
<br>>Y properies for each of those sub-objects. Easy-peasy (as long as
<br>>you do not need too many diamond angles)!
<br>>
<br>>-----
<br>>David McFarlane
<br>>E-Prime training
<br>>online:
<br>><<a href="http://psychology.msu.edu/Workshops_Courses/eprime.aspx" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fpsychology.msu.edu%2FWorkshops_Courses%2Feprime.aspx\46sa\75D\46sntz\0751\46usg\75AFQjCNHhJVD3mCfXKdywfB5AgKLPu1OSJg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fpsychology.msu.edu%2FWorkshops_Courses%2Feprime.aspx\46sa\75D\46sntz\0751\46usg\75AFQjCNHhJVD3mCfXKdywfB5AgKLPu1OSJg';return true;">http://psychology.msu.edu/<wbr>Workshops_Courses/eprime.aspx</a>><a href="http://psychology.msu.edu/Workshops_Courses/eprime.aspx" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fpsychology.msu.edu%2FWorkshops_Courses%2Feprime.aspx\46sa\75D\46sntz\0751\46usg\75AFQjCNHhJVD3mCfXKdywfB5AgKLPu1OSJg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fpsychology.msu.edu%2FWorkshops_Courses%2Feprime.aspx\46sa\75D\46sntz\0751\46usg\75AFQjCNHhJVD3mCfXKdywfB5AgKLPu1OSJg';return true;"><wbr>http://psychology.msu.edu/<wbr>Workshops_Courses/eprime.aspx</a>
<br>>
<br>>Twitter: @EPrimeMaster
<br>>(<<a href="https://twitter.com/EPrimeMaster" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Ftwitter.com%2FEPrimeMaster\46sa\75D\46sntz\0751\46usg\75AFQjCNHlT7nwYBmELwRxV4Xn5GW-sG9EKw';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Ftwitter.com%2FEPrimeMaster\46sa\75D\46sntz\0751\46usg\75AFQjCNHlT7nwYBmELwRxV4Xn5GW-sG9EKw';return true;">https://twitter.com/<wbr>EPrimeMaster</a>><a href="https://twitter.com/EPrimeMaster" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Ftwitter.com%2FEPrimeMaster\46sa\75D\46sntz\0751\46usg\75AFQjCNHlT7nwYBmELwRxV4Xn5GW-sG9EKw';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Ftwitter.com%2FEPrimeMaster\46sa\75D\46sntz\0751\46usg\75AFQjCNHlT7nwYBmELwRxV4Xn5GW-sG9EKw';return true;">https://twitter.<wbr>com/EPrimeMaster</a> )
<br>>
<br>>/----
<br>>Stock reminder: 1) I do not work for PST. 2) PST's trained staff
<br>>take any and all questions at
<br>><<a href="https://support.pstnet.com" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fsupport.pstnet.com\46sa\75D\46sntz\0751\46usg\75AFQjCNF5BfukPzW6lq7UCweMsMu7_9wJEQ';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fsupport.pstnet.com\46sa\75D\46sntz\0751\46usg\75AFQjCNF5BfukPzW6lq7UCweMsMu7_9wJEQ';return true;">https://support.pstnet.com</a>><a href="https://support.pstnet.com" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fsupport.pstnet.com\46sa\75D\46sntz\0751\46usg\75AFQjCNF5BfukPzW6lq7UCweMsMu7_9wJEQ';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fsupport.pstnet.com\46sa\75D\46sntz\0751\46usg\75AFQjCNF5BfukPzW6lq7UCweMsMu7_9wJEQ';return true;">h<wbr>ttps://support.pstnet.com</a> , and they
<br>>strive to respond to all requests in 24-48 hours, so make full use of
<br>>it. 3) In addition, PST offers several instructional videos on their
<br>>YouTube channel
<br>>(<<a href="http://www.youtube.com/user/PSTNET" target="_blank" onmousedown="this.href='http://www.youtube.com/user/PSTNET';return true;" onclick="this.href='http://www.youtube.com/user/PSTNET';return true;">http://www.youtube.com/<wbr>user/PSTNET</a>><a href="http://www.youtube.com/user/PSTNET" target="_blank" onmousedown="this.href='http://www.youtube.com/user/PSTNET';return true;" onclick="this.href='http://www.youtube.com/user/PSTNET';return true;">http://www.<wbr>youtube.com/user/PSTNET</a>
<br>>). 4) If you do
<br>>get an answer from PST staff, please extend the courtesy of posting
<br>>their reply back here for the sake of others.
<br>>\----
<br>>
<br>>
<br>>At 1/8/2014 09:56 AM Wednesday, Camila Gomes Victorino wrote:
<br>> >I have a binary decision making task where the subject needs to find
<br>> >out the diamond or losangle in one of the two sides. In the other
<br>> >one, there is a square and it needs to be identical to the diamond
<br>> >(just the angle position changes). I tried to draw the losangle and
<br>> >it worked, the problem is that the stimulus appears with serrated or
<br>> >burr sides. I tried to fix it putting the cnvs.penwidth and
<br>> >modifying it but it changes a lot the diamond and it needs to be
<br>> >identical to the square. I do not know how to fix it and get the
<br>> >serrated burrs out.
<br>> >
<br>> >I wrote the code as this:
<br>> >
<br>> > 'Declare variables
<br>> >Dim r, centerX, centerY As Integer
<br>> >
<br>> >'Create canvas
<br>> >Set cnvs = Display.Canvas
<br>> >cnvs.FillColor = CColor("White")
<br>> >cnvs.Clear
<br>> >
<br>> >'Create fixation point
<br>> >cnvs.TextColor = CColor ("black")
<br>> >cnvs.FontName = "Courier New"
<br>> >cnvs.FontSize = "18"
<br>> >cnvs.FontBold = CLogical("Yes")
<br>> >cnvs.Text 313, 228, "+"
<br>> >
<br>> >'Create gray squares
<br>> >cnvs.Pencolor = CColor("Gray")
<br>> >cnvs.Fillcolor = CColor("White")
<br>> >cnvs.Rectangle 255, 205, 55, 62
<br>> >cnvs.Rectangle Display.XRes -310, 205, 55, 62
<br>> >
<br>> >'Show targets
<br>> >cnvs.Pencolor = CColor("black")
<br>> >cnvs.Fillcolor = CColor("black")
<br>> >If c.getattrib("Target") = "Diamond" Then
<br>> >'Write a left diamond
<br>> >Dim P (4) As Point
<br>> >P(0).x = 280
<br>> >P(0).y = 218
<br>> >P(1).x = 296
<br>> >P(1).y = 239
<br>> >P(2).x = 280
<br>> >P(2).y = 256
<br>> >P(3).x = 265
<br>> >P(3).y = 239
<br>> >cnvs.Polygon P, 4
<br>> >
<br>> >cnvs.Rectangle 345, 222, 25, 30
<br>> >Else
<br>> >'Write a Rectangle
<br>> >cnvs.Rectangle 270, 222, 25, 30
<br>> >'Write a Diamond
<br>> >
<br>> >Dim L (4) As Point
<br>> >L(0).x = 357
<br>> >L(0).y = 218
<br>> >L(1).x = 373
<br>> >L(1).y = 239
<br>> >L(2).x = 357
<br>> >L(2).y = 256
<br>> >l(3).x = 342
<br>> >L(3).y = 239
<br>> >cnvs.Polygon L, 4
<br>> >
<br>> >
<br>> >End If
<br>> >
<br>> >Sleep (1000)
<br>> >
<br>> >Thank you!
<br>> >Best regards,
<br>>
<br>>--
<br>>You received this message because you are subscribed to the Google
<br>>Groups "E-Prime" group.
<br>>To unsubscribe from this group and stop receiving emails from it,
<br>>send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="08BjNtoXXrcJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">e-prime+u...@<wbr>googlegroups.com</a>.
<br>>To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="08BjNtoXXrcJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">e-p...@googlegroups.com</a>.
<br>>To view this discussion on the web visit
<br>><<a href="https://groups.google.com/d/msgid/e-prime/dcc3a442-d83a-421a-913f-3dc15ec035fe%40googlegroups.com" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/e-prime/dcc3a442-d83a-421a-913f-3dc15ec035fe%40googlegroups.com';return true;" onclick="this.href='https://groups.google.com/d/msgid/e-prime/dcc3a442-d83a-421a-913f-3dc15ec035fe%40googlegroups.com';return true;">https://groups.google.com/d/<wbr>msgid/e-prime/dcc3a442-d83a-<wbr>421a-913f-3dc15ec035fe%<wbr>40googlegroups.com</a>><a href="https://groups.google.com/d/msgid/e-prime/dcc3a442-d83a-421a-913f-3dc15ec035fe%40googlegroups.com" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/e-prime/dcc3a442-d83a-421a-913f-3dc15ec035fe%40googlegroups.com';return true;" onclick="this.href='https://groups.google.com/d/msgid/e-prime/dcc3a442-d83a-421a-913f-3dc15ec035fe%40googlegroups.com';return true;">https://<wbr>groups.google.com/d/msgid/e-<wbr>prime/dcc3a442-d83a-421a-913f-<wbr>3dc15ec035fe%40googlegroups.<wbr>com</a>.
<br>>For more options, visit
<br>><<a href="https://groups.google.com/groups/opt_out" target="_blank" onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;">https://groups.google.com/<wbr>groups/opt_out</a>><a href="https://groups.google.com/groups/opt_out" target="_blank" onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;">https://groups.<wbr>google.com/groups/opt_out</a>.
<br>
<br></blockquote></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/514b2dd0-659b-4bad-970e-3a61378e19e6%40googlegroups.com">https://groups.google.com/d/msgid/e-prime/514b2dd0-659b-4bad-970e-3a61378e19e6%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 />