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

point, plot, pixel ?

 [1/10] from: keckman:welho at: 5-Aug-2010 8:46


Hello, I'm new in Rebol grahpic. How to put on pixel in Rebol?

 [2/10] from: gschwarz:sctelco:au at: 5-Aug-2010 16:07


Hello, and wellcome to the list. :-) http://www.rebol.com/docs/image.html This link should help. Regards, Greg

 [3/10] from: semseddinm:bircom at: 5-Aug-2010 10:14


Hi, first of all read about the series in core manual. http://www.rebol.com/docs/docs.html Because images are also series. If you want to draw something (not just putting pixels; box, circle, line etc.) read "REBOL/View Draw Dialect 1.3" part in the docs. Thu, 05 Aug 2010 08:46:46 +0300 tarihinde Petri Keckman <keckman-welho.com> şöyle yazmış:

 [4/10] from: keckman:welho at: 5-Aug-2010 10:49


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) ]

 [5/10] 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
<<quoted lines omitted: 8>>
> '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

 [6/10] from: henrikmk:gma:il at: 5-Aug-2010 10:14


2010/8/5 =DEemseddin Moldibi <semseddinm-bircom.com>:
> Thu, 05 Aug 2010 10:49:14 +0300 tarihinde Petri Keckman =A0 > <keckman-welho.com> =FE=F6yle yazm=FD=FE:
<<quoted lines omitted: 21>>
> putpixel 40 20 > view lay
You can of course still draw on the image created above using DRAW: draw img [...something...] -- Regards, Henrik Mikael Kristensen

 [7/10] from: santilli:gabriele:g:mail at: 5-Aug-2010 12:38


2010/8/5 =C5=9Eemseddin Moldibi <semseddinm-bircom.com>:
> 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
== make image! [100x100 #{ 000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000...
>> poke img 5x5 white
== 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.

 [8/10] from: carl:cybercraft at: 5-Aug-2010 18:12


On Thursday, 5-August-2010 at 8:46:46 Petri Keckman wrote,
>Hello, >I'm new in Rebol grahpic. >How to put on pixel in Rebol?
See the 'draw' docs... http://www.rebol.com/docs/draw.html That should get you started. And do ask for more help here if you have any problems. -- Carl Read.

 [9/10] from: keckman:welho at: 5-Aug-2010 17:03


Carl Read <carl-cybercraft.co.nz> kirjoitti Thu, 05 Aug 2010 09:12:51 +0300
> On Thursday, 5-August-2010 at 8:46:46 Petri Keckman wrote, > >> Hello, >> I'm new in Rebol grahpic. >> How to put on pixel in Rebol? > > See the 'draw' docs... > > http://www.rebol.com/docs/draw.html
There is no pixel command - that's why i asked here. I already get the answer, thank you.

 [10/10] from: carl:cybercraft at: 6-Aug-2010 8:05


On Thursday, 5-August-2010 at 17:03:27 Petri Keckman wrote,
>Carl Read <carl-cybercraft.co.nz> kirjoitti Thu, 05 Aug 2010 09:12:51 +0300 >>
<<quoted lines omitted: 9>>
>There is no pixel command - that's why i asked here. >I already get the answer, thank you.
I see that. The other replies arrived first because mine took hours to arrive! You'd had none when I answered. -- Carl Read.

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted