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.

> 2) How to draw a line between two movable faces. I need it to implement
> a simple graph editing functionality.

> Paavo

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to