-
Notifications
You must be signed in to change notification settings - Fork 29
BordersAndFills.md
In old Shoes, Backgrounds were just geometry (issue to make Scarpe do that). A background was really just a (by default) whole-slot-size rectangle of the appropriate color or pattern. Border were also just geometry (Scarpe issue). Same idea, but they were a chunk of color or pattern around the edge of the slot.
Shoes3 let you set up slightly more interesting fills - gradients and images. A cPattern was an object returned like a drawable, including by border and background methods. You could set fills and styles, and you could call .move or .displace on it to change the top/left or displace_top/displace_left styles.
If you set the fill to a Ruby range, you'd get a gradient. If you set it to a string it assumed that was the filename for a tiled image fill.
Presumably there are other possible fills, but those are what I see in Shoes3.