Fast way to put pixels on the screen

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Fast way to put pixels on the screen

Herbert König
Hello,

what is a fast way to put pixels on the screen?

I have an array with coefficients between 0.0 and 1.0 and want to
colour code them (0 white ... 1 blue).

For smaller numbers (up to 50 X 50) I put morphs (rectangles) into a
big morph and just set their colour.

For small spots Form>>colorAt:put: might be an option, reading the
coordinates for at: from a predefined array.

But I might want to use 2x2 pixel dots in a 3x3 raster.

I can think of using the examples in Pen for alternatives.

Any experience?
 

Thanks,

Herbert                          mailto:[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Fast way to put pixels on the screen

Hans N Beck-2
Hi Herbert,

what's about bitblit ?  It has many possibilities.

Regards

Hans

Am 31.01.2007 um 16:18 schrieb Herbert König:

> Hello,
>
> what is a fast way to put pixels on the screen?
>
> I have an array with coefficients between 0.0 and 1.0 and want to
> colour code them (0 white ... 1 blue).
>
> For smaller numbers (up to 50 X 50) I put morphs (rectangles) into a
> big morph and just set their colour.
>
> For small spots Form>>colorAt:put: might be an option, reading the
> coordinates for at: from a predefined array.
>
> But I might want to use 2x2 pixel dots in a 3x3 raster.
>
> I can think of using the examples in Pen for alternatives.
>
> Any experience?
>
>
> Thanks,
>
> Herbert                          mailto:[hidden email]
>
>