Hi Rob,
Sorry for the delay, I didn’t see the forum notification.
Yes, the example in the feature’s documentation does not work in my tests.
https://docs.coronalabs.com/api/type/ShapeObject/stroke.html
local options = { width = 40, height = 100, numFrames = 8, sheetContentWidth = 160, -- width of original 1x size of entire sheet sheetContentHeight = 200 -- height of original 1x size of entire sheet } local imageSheet = graphics.newImageSheet( "textures.png", options ) local paint = { type = "image", sheet = imageSheet, frame = 2 } local rect = display.newRect( 200, 200, 300, 300 ) rect.stroke = paint rect.strokeWidth = 4
To make things simpler, here is some modified code and an attached image.
local options = { frames = { { x = 165, y = 99, width = 28, height = 31 }, { x = 165, y = 122, width = 28, height = 31 } }, sheetContentWidth = 512, sheetContentHeight = 512 }; local imageSheet = graphics.newImageSheet("Image.png", options); local paint = { type = "image", sheet = imageSheet, frame = 2 }; local rect = display.newRect( 200, 200, 300, 300 ); rect.stroke = paint; --rect.fill = paint; -- Uncomment this to see that the paint is correct and works as a fill rect.strokeWidth = 31;
Image (excuse the white space, I cut the content out of the image)

Thanks for looking at this, hopefully I’m just interpreting something wrong.
Albert