TintedNinePatchBorder

class TintedNinePatchBorder(val ninePatch: NinePatch, val tint: Color) : Border

Similar to NinePatchBorder, but the source texture's pixels are multiplied by tint. Used in two ways :

  1. Making the border semi-transparent by using only the alpha channel of tint

  2. Using the RGB channels of tint on a greyscale nine-patch.

Constructors

Link copied to clipboard
constructor(ninePatch: NinePatch, tint: Color)

Properties

Link copied to clipboard
Link copied to clipboard
val tint: Color

Functions

Link copied to clipboard
open override fun draw(x: Float, y: Float, width: Float, height: Float, size: Edges)

Draw just the border, not the area within it. However, if implementations wish to draw the inside area too, that's ok.