ColorShader

class ColorShader(val color: Int) : DynamicShader

Applies the given color (color) to the shaded area.

Constructors

Link copied to clipboard
constructor(color: Int)

Properties

Link copied to clipboard
val color: Int

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun getColorAt(point: Point, context: DrawContext, bounds: RectF): Int

Gets the color of the pixel at the given point. bounds specifies the shaded area.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun provideShader(context: DrawContext, left: Float, top: Float, right: Float, bottom: Float): Shader

Creates a Shader by using the provided left, top, right, and bottom bounds.

open fun provideShader(context: DrawContext, bounds: RectF): Shader

Creates a Shader by using the provided bounds.

Link copied to clipboard
open override fun toString(): String