Polygons
Terence Heaford
lheaford at icloud.com
Sun Apr 4 13:02:49 EDT 2021
When you do this it appears to affect the fill settings. I lose the fill where there are no lines and the closure of the points also moves.
I can’t believe it’s LC, it must be me. A simple script example would be useful if you have the time.
A square, that’s easy, that has the side lines missing and is filled with a colour.
Regards
Terry
> On 4 Apr 2021, at 15:39, Ian McKnight via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> By a space I mean a blank line!
> Ian
>
> On Sun, 4 Apr 2021 at 15:39, Ian McKnight <iangmcknight at gmail.com <mailto:iangmcknight at gmail.com>> wrote:
>
>> Hi
>> Put a space in-between the points where you want the line in not be
>> drawn. The shape is still constructed but with missing sides.
>>
>> Ian
>>
>> On Sun, 4 Apr 2021 at 15:02, Terence Heaford via use-livecode <
>> use-livecode at lists.runrev.com> wrote:
>>
>>> Thanks for that, clearly understood.
>>>
>>> To expand on the original question. If you have a hexagon, is it
>>> possible to only draw lines on sides 1,3,5,6 and no lines on sides 2,4.
>>>
>>> Thanks Terry
>>>
>>>> On 4 Apr 2021, at 12:43, Ian McKnight via use-livecode <
>>> use-livecode at lists.runrev.com> wrote:
>>>>
>>>> Yes. Polygons use a list of 4 points to describe a triangle. The first
>>> and
>>>> last are the co-ords of the same vertex to ensure closure.
>>>> If the last point is left out then the line between the last vertex and
>>> the
>>>> first vertex is not drawn.
>>>> So make sure that your list of points doesn't begin with the right angle
>>>> vertex and you're good to go.
>>>>
>>>> Ian
>>>>
>>>>
>>>>> On Sun, 4 Apr 2021 at 12:12, Terence Heaford via use-livecode <
>>>>> use-livecode at lists.runrev.com> wrote:
>>>>>
>>>>> If I draw a shape using a polygon, as an example assume a right angled
>>>>> triangle.
>>>>>
>>>>> Is it possible to hide the line between the points that make up the
>>>>> hypotenuse?
>>>>>
>>>>> Thanks
>>>>>
>>>>> Terry
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>
>>>>
>>>> --
>>>> Regards
>>>>
>>>>
>>>> Ian McKnight
>>>>
>>>> iangmcknight at gmail.com
>>>> =======================
>>>> _______________________________________________
>>>> 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
>>>
>>> _______________________________________________
>>> 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
>>>
>>
>>
>> --
>> Regards
>>
>>
>> Ian McKnight
>>
>> iangmcknight at gmail.com
>> =======================
>>
>
>
> --
> Regards
>
>
> Ian McKnight
>
> iangmcknight at gmail.com <mailto:iangmcknight at gmail.com>
> =======================
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com <mailto: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 <http://lists.runrev.com/mailman/listinfo/use-livecode>
More information about the use-livecode
mailing list