Show us your code.
Or - just take my code, then cut out pieces
one by one until it stops working, then
add the last piece in again, and repeat.
Eventually, you will be left with the
minimum required to get it working.
You know the score. :)

Or - see the top of the demo code;
It uses a function 'include, which is in a
separate file (which I use a lot),
to include the trapezoid-morph function,
which is in another file.

Only after it has been included can you use
the trapezoid-morph function.

Details details... The user doesn't care,
shouldn't care, but man, how else can I
fight the beast of complexity, a creature
I fight every day in my dreams?

You don't have to answer that.
Here are some snippets of code that may help you.
You need at least this:

        site: http://www.lexicon.net/anton/rebol/
        do load-thru site/library/include.r
        include [
                site/library/trapezoid-morph.r [vertical-trapezoid]
        ]

        ; (now you can use vertical-trapezoid)

Load an image, or create it from text:

        img: to-image layout [origin 0 backdrop black h1 "hello" white]

You could use my trim-image function to crop away all
the blank borders around the image, so the edges
fit exactly:

        file: %trim-image.r
        if none? do load-thru site/library/:file [
                view layout [h3 "Couldn't load-thru" h4 to-string site/library/:file]
                quit
        ]

        img: trim-image img
        
Oops, I just noticed vertical-trapezoid does a
        show pic
and
        ???
which just goes to show how beta it is.
Anyway, let us do what it expects for now:

        ???: none
        view layout [
                size 200x200
                image img ; original image
                button "draw" [
                        vertical-trapezoid img none 2x2 40 120x10 80
                ]
                pic: image img
        ]

Happy hacking,

Anton.

> Hi Anton,
> 
> Very interest in this. 
> 
> I'm running View beta  and when I add some text and
> press Draw I get an error: "vertical-trapezoid" has no
> value 
> 
> Regards,
>  
> > I have had the same idea with fonts and 3d text,
> > so I started work on a trapezoid function, that
> > can map a 2d image into a trapezoid.
> > It's not finished, but you can see what it can
> > do at the moment.
> > 
> >     site: http://www.lexicon.net/anton/rebol/
> >     do load-thru site/demo/demo-trapezoid-morph.r

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to