Go back to Efl.Gfx.Filter.

Transformations

Apply a geometrical transformation to a buffer.

For the moment, only vertical flip is implemented and available.

This operation does not blend and assumes the destination buffer is empty.

Syntax
transform ({ dst, op = 'vflip', src = input, oy = 0 })
Parameters
dst Destination buffer. Must be of the same colorspace as src. Must be specified.
op Must be “vflip”. There is no other operation yet.
src Source buffer to transform.
oy Y offset.
Example

This will create a mirrored text effect, for a font of 50px.

mirror.lua
t = buffer ('alpha')
transform ({ oy = 20, dst = t })
blend ({ src = t, color = '#fff8' })
blend ({ color = 'white' })