OffsetSchema
A two-dimensional position used by gradient BackgroundSchema variants.
Both axes are expressed in dp and are relative to the top-start corner of the tile's drawing area. A null axis maps to Float.POSITIVE_INFINITY, which Compose interprets as "the far right (x) or far bottom (y) of the drawing area" — this is how the far edge of a gradient is expressed without knowing the tile size upfront.
Constants:
DSL helper (mosaic-server):
offset(x = 40, y = 40) // 40dp, 40dp
offset(x = 0) // 0dp, bottom edge
offset() // bottom-end cornerContent copied to clipboard