Draw bitmaps pixel by pixel

Michiel Spape Michiel.Spape at nottingham.ac.uk
Wed Jun 16 16:38:23 UTC 2010


That's better than mine - but I think my comments on issues of timing, need for pre-writing canvas, &c., might still be useful.

Cheers,

Mich

 

Michiel Spapé

Research Fellow

Perception & Action group

University of Nottingham

School of Psychology

 

From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of ben robinson
Sent: 16 June 2010 14:57
To: e-prime at googlegroups.com
Subject: Re: Draw bitmaps pixel by pixel

 

how about:

For y = 1 to 5

   For x = 1 to 5

      Select Case CInt(Rnd(1))

         Case 0

            cnvs.SetPixel x, y, CColor("black")

         Case 1

            cnvs.SetPixel x, y, CColor("white")

      End Select

   Next x

Next y

On Wed, Jun 16, 2010 at 7:14 AM, Tobias <tobias.fw at gmail.com> wrote:

Hej together,

I want to program a random mask for a visual attention experiment. The
idea is, that the mask should be randomly created each trial because
there are some hints that subjects "learn" to ignore a mask if it is
repeatedly used. So what I think of is a white noise or something. Is
there a way in E-Prime to create bitmaps pixel by pixel with an
inline?

Cheers,
Tobias

--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com <mailto:e-prime%2Bunsubscribe at googlegroups.com> .
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.

 

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20100616/e7ed8ae9/attachment.htm>


More information about the Eprime mailing list