Go back to Efl.Gfx.Filter.
Many filter operations will take one (or more) color arguments.
Since EFL 1.15, the supported syntax to create colors has expanded using Lua class appropriately named color
.
invisible
or '#0000'.
-- default is black color() color(nil) -- with r,g,b,a integers in the range [0-255] color(r,g,b) color(r,g,b,a) color({r = 0, g = 255, b = 128, a = 64}) -- with r,g,b,a hexadecimal values [0-F] color('#rgb') color('#rgba') color('#rrggbb') color('#rrggbbaa') -- predefined colors color('red')
Here is the list of predefined colors, based on their equivalent HTML names.
blur { 15, color = color('yellow') } blur { 5, color = '#f0f8' } blur { 2, color = state.color } blend { color = 'white' }