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

[REBOL] Re: to-offset

From: rotenca:telvia:it at: 15-Apr-2002 17:20

Hi Gregg,
> Mhhhh, offset in Rebol are 0x0 based and then > >> > > Are you saying that REBOL uses 0x0 to (n-1)x(n-1) itself? Can you give me an > example? I do like to maintain consistency with native design choices when I > can.
1) face/offset start from 0x0 First, a viewer: display: func [i [image!] /size sz][ view center-face layout compose [ box (either size [sz] [i/size]) i] ] then try this: display/size to-image layout [ origin 0x0 t1: box 10x10 red at 1x1 t2: box 8x8 blue ] 100x100 print t1/offset print t2/offset 2) draw position start from 0x0 Look at this: layout [ t3: box red 10x10 effect [ draw [ pen white line 0x0 9x0 pen black line 1x9 8x9 ] ] ] display/size to-image t3 100x100
> It does. You have an extra colon in there. :)
Pardon, my error! --- Ciao Romano