2010/8/5 =C5=9Eemseddin Moldibi <[email protected]>:

> img: make image! 100x50
> lay: layout [image img]
> putpixel: func [x y] [change skip img 100 * y + x white]
> putpixel 40 20
> view lay

It's easier than that:

>> img: make image! 100x100
=3D=3D make image! [100x100 #{
000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000...
>> poke img 5x5 white
=3D=3D 255.255.255
>> view layout [image img]

Ie. use POKE with a pair! and a color. You can use the fourth element
of the tuple to set the alpha channel.
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to