Path on Rect with Stroke and Fill

Ok am I on crack or is this broken at the moment?

When applying path on a rect with a stroke on it causes everything “but” the stroke to distort

 local testRect = display.newRect(0, 0, 800, 600 ) testRect.anchorX, testRect.anchorY = 0.5, 0.5 testRect.x, testRect.y = (display.contentWidth \* .5), (display.contentHeight \* .5) testRect.strokeWidth = 3 testRect:setFillColor(1, 0, 0) testRect:setStrokeColor(1, 1, 1) testRect.path.x4 = -60 testRect.path.y3 = -60

I don’t know if this is by design or not, but from an end user perspective, it’s not how you would think it should work.  Can you file a bug report please and post the bug report number back here?

Thanks

Rob

@Rob,

I did file the bug report, but it didn’t give me a number to report back… I did a slimy hack using a container with multiple rects offset and + width/height, then distorted the container and rect… etc. (see photo attached).

Not ideal but just created a function for it and doesn’t bother performance at all so object:CreateDialog() etc. pretty fast and quick :slight_smile:

Once it has been resolve it will just go into that function and optimize it :slight_smile:

Case 29336 (just got the email)

I don’t know if this is by design or not, but from an end user perspective, it’s not how you would think it should work.  Can you file a bug report please and post the bug report number back here?

Thanks

Rob

@Rob,

I did file the bug report, but it didn’t give me a number to report back… I did a slimy hack using a container with multiple rects offset and + width/height, then distorted the container and rect… etc. (see photo attached).

Not ideal but just created a function for it and doesn’t bother performance at all so object:CreateDialog() etc. pretty fast and quick :slight_smile:

Once it has been resolve it will just go into that function and optimize it :slight_smile:

Case 29336 (just got the email)