How to make a square topped, round rect bottomed graphic?

Richmond richmondmathewson at gmail.com
Wed Dec 1 10:48:35 EST 2010


On 12/01/2010 05:01 PM, David Bovill wrote:
> What is the most efficient way to make this? I thought I could have a
> polygon graphic which was opaque but not joined up and use that to add
> square corners to a roundrect graphic background - but it seems that every
> time I make it opaque it automatically joins the graphic points.
>
> What I want to be able to do is have a vector graphic which has the option
> to have rounded corners on either or both the top and bottom, whcih I can
> script. The most efficient way I can thin of doing it at the moment is to
> have a background roundrect graphic, on top of which I can place a polygon
> line to create square corners, and a white opaque graphic just inside the
> square boundary to cover up the round corners?
>
> Is there a better way?
> _______________________________________________
What follows is a personal fantasy:

on mouseUp
    set the roundRadius of parameter 1 of graphic "WONKY" to 0
    set the roundRadius of parameter 2 of graphic "WONKY" to 0
    set the roundRadius of parameter 3 of graphic "WONKY" to 50
    set the roundRadius of parameter 4 of graphic "WONKY" to 50
end mouseUp

SADLY, it is ONLY a fantasy . . .  :(



More information about the use-livecode mailing list