Package-level declarations

Types

Link copied to clipboard
class LiveShader(val name: String, source: String) : Visualization

A shader drawing whose program can be swapped while it runs. Made for writing new ones.

Link copied to clipboard
actual class ShaderProgram(source: String)

Android's own runtime shaders, which arrived in version 33.

expect class ShaderProgram(source: String)

A small program that runs once for every pixel, compiled from source at runtime.

actual class ShaderProgram(source: String)

Desktop and iOS both draw through Skia, so both get this one.

Link copied to clipboard
object WarpFields

Warp fields worth having. Each is one function, and each folds the picture a different way.

Link copied to clipboard
class WarpSpec(field: String, val calmAmount: Float = 0.04f, val livelyAmount: Float = 0.11f, val drift: Float = 0.0f)

How the previous frame is bent before it is laid back down.