Package-level declarations

The public API: the blob composable, its layer configuration and presets.

Types

Link copied to clipboard
data class BlobLayer(val color: Color = Color.White, val brush: Brush? = null, val alpha: Float = 1.0f, val segments: Int = 6, val amplitude: ClosedRange<Dp> = (-4).dp..4.dp, val tempo: Float = 1.0f, val rotation: Float = 0.0f, val spin: Float = 0.0f, val blur: Dp = 0.dp, val blendMode: BlendMode = BlendMode.SrcOver, val strokeWidth: Dp = 0.dp, val visible: Boolean = true, val seed: Int? = null)

One morphing outline drawn by Blob.

Link copied to clipboard

Ready-made layer stacks to start from. Each returns a plain list, so copy and tweak freely.

Functions

Link copied to clipboard
fun Blob(layers: List<BlobLayer>, modifier: Modifier = Modifier, shape: Shape = CircleShape, intensity: () -> Float = { 1f }, speed: () -> Float = { 1f }, animate: Boolean = true)

Draws layers as morphing outlines of shape, the first layer at the bottom.