Copy link to clipboard
Copied
Hi
I''ve created a single wave line via the zig zag tool in a 1000px*20px document. Now I want to fill the area above the curve with a color. When I chose wave size 10 and 45 Waves per Segment I could just fill and got an acceptable result with the only caveat that the very top was not filled.
When I switched to 30 Waves per Segment unfortunately the filling went full incomprehensibly crooked on me.
It would be super fantastic if somebody could show the right way to fully fill the top of the wave:-)
Copy link to clipboard
Copied
The way you've done it because the end point is at the bottom and the start point is at the top this is why you get the result on the second example. On your first both start and end points are set to the top and therefore works.
Copy link to clipboard
Copied
sishamIAGD is correct - the way the fill is applied to the zig-zag depends on whether you've chosen an even or odd number of ridges per segment.
If you want the fill to be above the top of the waves, you might try this method:
Peter
Copy link to clipboard
Copied
At 30 , one end of the line is at the top and the 0ther at the bottom, it just fills between the start and the end.
The top not totally being filled is correct, it fills to the center of the linewidth. In your case 1 point, so 0,5 point sticks out.
With a single line you cannot align the stroke to the inside.
But you can create a variable width profile that offsets the stroke to the bottom.