Fast way to put pixels on the screen

Herbert König herbertkoenig at
Wed Jan 31 15:18:06 UTC 2007


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?


Herbert                          mailto:herbertkoenig at

More information about the Squeak-dev mailing list