The problem is that the borders of a polygon are integral parts of that
polygon and not somehow detachable; even if their width is set to 0 they
are still there. Were it possible to set the widths of sides individually
things would be quite different, but to achieve this one would probably
have to
I also have concluded this.
If you miss out lines the opaque setting is irrelevant, it functions as being
false.
Is this a bug?
My work around is two polygons one underneath (filled) and the other on top
(with lines)
You could just draw lines between the points that need them, using a polygon
To simulate a graphic with no lines, set the border color to the same color
as the fill. Set opaque to true. You could then overlay that with a line
graphic that just has the top portion of the graph (no x-axis line.)
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | h
I would hazard a guess that the fill area needs to be bounded by a line. If
a line is missing the fill routine can't determine where the edge of the
fill is and so fails, leaving the grc empty. I may be completely wrong on
this but it seems logical.
Not much help I know but if you want to emphasis
OK, I have changed your script by adding these lines to the mouseUp handler
set the backgroundColor of grc "myPoly" to red
set the forecolor of grc "myPoly" to blue
Now if you switch the lines on/off you will see that the fill does not work
without all lines.
Not sure what this means exactly.
Thanks for your example.
I am basic filling underneath a line chart to make an area chart but the
closing lines to the x-Axis do not have a line.
I concluded to draw a polygon twice once with fill and no lines, filled to the
x-Axis and overlay it with a similar polygon but not starting/finishin
I have to say that I'm not seeing this.
I seem to remember that graphics can't show a fill unless all lines are
visible.
As a test I created a graphic called "myPoly" .
I placed a checkbox called "showSides" (and removed its script)
in a button I placed the following script:
--
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 missin
By a space I mean a blank line!
Ian
On Sun, 4 Apr 2021 at 15:39, Ian McKnight 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-liveco
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@lists.runrev.com> wrote:
> Thanks for that, clearly understood.
>
> To expand on
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
> wrote:
>
> Yes. Polygons use a list of 4 poi
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 r
12 matches
Mail list logo