Draw bitmaps pixel by pixel

ben robinson baltimore.ben at gmail.com
Wed Jun 16 13:56:57 UTC 2010


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<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.

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


More information about the Eprime mailing list