Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: point, plot, pixel ?

From: semseddinm:bircom at: 5-Aug-2010 11:04

Thu, 05 Aug 2010 10:49:14 +0300 tarihinde Petri Keckman <keckman-welho.com> =FE=F6yle yazm=FD=FE:
> Greg Schwarz <gschwarz-sctelco.net.au> kirjoitti Thu, 05 Aug 2010 > 09:07:33 > +0300 > >> http://www.rebol.com/docs/image.html >> >> This link should help. > > No it doesn't, but i did it with line: > > xy: as-pair xs ys > append plot reduce [ > 'pen (black) > 'line xy (xy + 1x1) > ]
here is what you want: img: make image! 100x50 lay: layout [image img] putpixel: func [x y] [change skip img 100 * y + x white] putpixel 40 20 view lay