Transforms 🌀 Bulka

Transforms

Transforms change the visual signal after a source makes it. They are geometric or color transforms.

Geometric transforms

rotate() — Rotation

rotate(angle, speed)

scale() — Scaling

scale(amount, xMult, yMult, offsetX, offsetY)

pixelate() — Pixelation

pixelate(pixelX, pixelY)

kaleid() — Kaleidoscope

kaleid(nSides)

repeat() — Repetition

repeat(repeatX, repeatY, offsetX, offsetY)

scroll() — Scrolling

scrollX(scrollX, speed)
scrollY(scrollY, speed)

Color transforms

color() — Setting the color

color(r, g, b, a)

brightness() and contrast()


saturate() — Saturation


hue() — Hue shift


invert() — Inversion


thresh() — Threshold


posterize() — Posterization


colorama() — Color shift


Combining transforms

Transforms can be chained: