MarbleNoiseDecorationPainter

class MarbleNoiseDecorationPainter(textureAlpha: Float, baseDecorationPainter: AuroraDecorationPainter?) : ShaderWrapperDecorationPainter

Implementation of AuroraDecorationPainter that uses marble noise painting on decoration areas.

Author

Kirill Grouchnikov

Constructors

MarbleNoiseDecorationPainter
Link copied to clipboard
fun MarbleNoiseDecorationPainter(textureAlpha: Float, baseDecorationPainter: AuroraDecorationPainter? = null)

Functions

paintDecorationArea
Link copied to clipboard
open override fun paintDecorationArea(drawScope: DrawScope, decorationAreaType: DecorationAreaType, componentSize: Size, outline: Outline, rootSize: Size, offsetFromRoot: Offset, colorScheme: AuroraColorScheme)

Paints the decoration area as a specified shape.

Properties

baseDecorationPainter
Link copied to clipboard
val baseDecorationPainter: AuroraDecorationPainter? = null
displayName
Link copied to clipboard
open override val displayName: String

The display name of this trait.

shaderGenerator
Link copied to clipboard
val shaderGenerator: (AuroraColorScheme) -> Shader