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

[REBOL] Draw a line between two faces - was: Preserve spaces in filenames

From: anton:wilddsl:au at: 17-Feb-2006 12:21

Hi Paavo, In order to see any graphics, there must be a face to show it in first. The example from RT docs actually has three faces: the window face, and the two subfaces which are contained in the pane of the window face. So draw your lines directly in the window face, eg: view make face [ size: 200x200 effect: [draw [line 20x20 180x150]] ] Any subfaces will be rendered over the top of those graphics, though. If you want graphics drawn over the top of the other subfaces, then you will need to add another subface to the end of the pane: view make face [ size: 200x200 pane: reduce [ make face [size: 100x50 color: yellow] make face [size: 50x100 color: blue] make face [ offset: 10x10 size: 180x180 effect: [merge luma 20 draw [line 0x0 170x120]] ] ] ] So the third and last subface is the "overlay" face, using MERGE to become transparent. Your next question might be how to depth-arrange the faces. You do this by simply reordering the pane block. Regards, Anton.