{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

TileMode.Companion

public static class TileMode.Companion


Summary

Public methods

static final @NonNull TileMode

Edge is clamped to the final color.

static final @NonNull TileMode

Render the shader's image pixels only within its original bounds.

static final @NonNull TileMode

Edge is mirrored from last color to first.

static final @NonNull TileMode

Edge is repeated from first color to last.

Public methods

getClamp

public static final @NonNull TileMode getClamp()

Edge is clamped to the final color.

The gradient will paint the all the regions outside the inner area with the color of the point closest to that region. TileMode.Clamp

getDecal

public static final @NonNull TileMode getDecal()

Render the shader's image pixels only within its original bounds. If the shader draws outside of its original bounds, transparent black is drawn instead. TileMode.Decal

getMirror

public static final @NonNull TileMode getMirror()

Edge is mirrored from last color to first. This is as if the stop points from 0.0 to 1.0 were then repeated backwards from 2.0 to 1.0, then forwards from 2.0 to 3.0, then backwards again from 4.0 to 3.0, and so forth (and for linear gradients, similarly from in the negative direction). TileMode.Mirror

getRepeated

public static final @NonNull TileMode getRepeated()

Edge is repeated from first color to last.

This is as if the stop points from 0.0 to 1.0 were then repeated from 1.0 to 2.0, 2.0 to 3.0, and so forth (and for linear gradients, similarly from -1.0 to 0.0, -2.0 to -1.0, etc). TileMode.Repeated