Package-level declarations

Types

Link copied to clipboard
abstract class BaseFiller
Link copied to clipboard
Link copied to clipboard
data class BitmapPaint(val bitmap: Bitmap, val transform: Matrix = Matrix.IDENTITY, val cycleX: CycleMethod = CycleMethod.NO_CYCLE, val cycleY: CycleMethod = CycleMethod.NO_CYCLE, val smooth: Boolean = true, val units: GradientUnits = GradientUnits.OBJECT_BOUNDING_BOX) : TransformedPaint
Link copied to clipboard
Link copied to clipboard
typealias ColorPaint = RGBA
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class GradientPaint(val kind: GradientKind, val x0: Double, val y0: Double, val r0: Double, val x1: Double, val y1: Double, val r1: Double, val stops: DoubleArrayList = DoubleArrayList(), val colors: IntArrayList = IntArrayList(), val cycle: CycleMethod = CycleMethod.NO_CYCLE, val transform: Matrix = Matrix.IDENTITY, val interpolationMethod: GradientInterpolationMethod = GradientInterpolationMethod.NORMAL, val units: GradientUnits = GradientUnits.OBJECT_BOUNDING_BOX, val startAngle: Angle = Angle.ZERO) : TransformedPaint
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object NonePaint : Paint
Link copied to clipboard
interface Paint
Link copied to clipboard
data class Stroke(val paint: Paint, val info: StrokeInfo)
Link copied to clipboard

Properties

Link copied to clipboard

Paints a default color. For BitmapFonts, draw the original Bitmap without tinting.

Functions

Link copied to clipboard
inline fun <T : RGBA> GradientPaint.add(vararg colors: T): GradientPaint

Adds colors to the gradient equidistantly

Adds color stops to the gradient in the pairs list being the left of the pair the ratio between 0.0 and 1.0, and the right of the pair the Color

Adds colors c0 and c1 to the gradient equidistantly

Adds colors c0, c1 and c2 to the gradient equidistantly

fun GradientPaint.add(c0: RGBA, c1: RGBA, c2: RGBA, c3: RGBA): GradientPaint

Adds colors c0, c1, c2 and c3 to the gradient equidistantly

Link copied to clipboard
Link copied to clipboard
inline fun LinearGradientPaint(x0: Number, y0: Number, x1: Number, y1: Number, cycle: CycleMethod = CycleMethod.NO_CYCLE, transform: Matrix = Matrix.IDENTITY, block: GradientPaint.() -> Unit = {}): GradientPaint
Link copied to clipboard
inline fun RadialGradientPaint(x0: Number, y0: Number, r0: Number, x1: Number, y1: Number, r1: Number, cycle: CycleMethod = CycleMethod.NO_CYCLE, transform: Matrix = Matrix.IDENTITY, block: GradientPaint.() -> Unit = {}): GradientPaint
Link copied to clipboard
inline fun SweepGradientPaint(x0: Number, y0: Number, startAngle: Angle = Angle.ZERO, transform: Matrix = Matrix.IDENTITY, block: GradientPaint.() -> Unit = {}): GradientPaint
Link copied to clipboard
Link copied to clipboard
fun Bitmap.toPaint(transform: Matrix = Matrix.IDENTITY, cycleX: CycleMethod = CycleMethod.NO_CYCLE, cycleY: CycleMethod = CycleMethod.NO_CYCLE, smooth: Boolean = true, units: GradientUnits = GradientUnits.OBJECT_BOUNDING_BOX): BitmapPaint
Link copied to clipboard