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

Björnke von Gierke bvg at mac.com
Wed Dec 1 11:05:59 EST 2010


yes but those only work for a single graphic at a time, not for every corner individually.

how about using a freehand polygon, and calculating the rounded corners yourself? might be worth the effort, if you desperately need it to be a single object.

On 1 Dec 2010, at 16:55, David Bovill wrote:

> Have you seen these (I've not played with them myself):
> 
> the joinStyle of graphic ...
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>  Specifies how corners between lines are drawn. It can be one of the
>> following:
>>    - bevel: a straight line is drawn between the outer edges of the
>> adjoining lines
>>    - round: a circular arc is drawn between the outer edges of the
>> adjoining lines
>>    - miter: outer edges are extended to meet at a sharp point. If the
>> distance from the corner exceeds the miter limit (see below), a bevel join
>> is used for the corner.
>> 
>>  Note: This only affects polygon, freehand curve and line graphics which
>> have their antialiased set to true.
>> 
>> 
>> the miterLimit of graphic ...
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>  Specifies how much miter joins are allowed to extend beyond the meeting
>> point of the two lines. The miterLimit is specified as a real multiple of
>> the line width.
>> 
>>  Note: This only affects polygon, freehand curve and line graphics which
>> have their antialiased set to true.
>> 
>> 
>> the capStyle of graphic ...
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>  Specifies how the line ends (and dash ends) will be drawn. It can be one
>> of the following:
>>    - butt: no cap is added
>>    - square: the edge is extended beyond the end-point by half the line
>> width
>>    - round: lines are ended by a half-circle centered at the end point of
>> the line
>> 
>>  Note: This only affects polygon, freehand curve and line graphics which
>> have their antialiased set to true.
>> 
> 
> 
> On 1 December 2010 15:48, Richmond <richmondmathewson at gmail.com> wrote:
> 
>> 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 . . .  :(
>> 
> 
> Or a sad fantasy :)
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list