You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A stretch fill tool (or maybe a stretch mode for the shape fill tool) would be very useful, as has been commented many times. It's not instantly obvious how it should work, so I gave it some thought and figured it would be good to write it down:
The behavior should depend on the dimensions of the currently selected stamp:
If three or more columns are selected, the leftmost and rightmost columns should be drawn once on the left and right borders of the drawn rectangle, and the columns between should be repeated.
If exactly two columns are selected, one of them should be used as the border, and the other as the fill. Which is which depends on which way the user is drawing the rectangle. If they're going rightwards, the left column should be used drawn once, and the right column should be repeated, and vice versa.
If exactly one column is selected, it should be repeated.
The exact same behavior applies to rows on the other axis.
This would mean that 3×3 stamp would draw a completely bordered rectangle, a 2×3 stamp would omit the border on one side, and 2×2 would omit it on two sides, and 2×1 would draw it only on one side.
The text was updated successfully, but these errors were encountered:
I've actually implemented a tool with most of this functionality as a JavaScript extension (while live-streaming), the extension can be found in the tiled-extensions repository.
If exactly two columns are selected, one of them should be used as the border, and the other as the fill. Which is which depends on which way the user is drawing the rectangle. If they're going rightwards, the left column should be used drawn once, and the right column should be repeated, and vice versa.
I think this is the only case which isn't handled as nicely in the extension, but support for this could easily be added. It's a nice idea!
I agree it would be nice to make this functionality part of the Shape Fill Tool. Since it would need to be optional it will require a bit of additional UI in the tool bar.
A stretch fill tool (or maybe a stretch mode for the shape fill tool) would be very useful, as has been commented many times. It's not instantly obvious how it should work, so I gave it some thought and figured it would be good to write it down:
The behavior should depend on the dimensions of the currently selected stamp:
This would mean that 3×3 stamp would draw a completely bordered rectangle, a 2×3 stamp would omit the border on one side, and 2×2 would omit it on two sides, and 2×1 would draw it only on one side.
The text was updated successfully, but these errors were encountered: