Android 12 Developer Preview is here! Try it out, and give us your feedback!

SolidColor

@Immutable class SolidColor : Brush
kotlin.Any
   ↳ androidx.compose.ui.graphics.Brush
   ↳ androidx.compose.ui.graphics.SolidColor

Summary

Public constructors
<init>(value: Color)

Public methods
Unit
applyTo(size: Size, p: Paint, alpha: Float)

Boolean
equals(other: Any?)

Int

String

Properties
Color

Public constructors

<init>

SolidColor(value: Color)

Public methods

applyTo

fun applyTo(
    size: Size,
    p: Paint,
    alpha: Float
): Unit

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String

Properties

value

val value: Color