# frei0r-filter-cairogradient

Draws a gradient on top of image. Filter is given gradient start and end points, colors and opacities.

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstBaseTransform
                        ╰──GstVideoFilter
                            ╰──frei0r-filter-cairogradient

## Factory details

Authors: – Sebastian Dröge <sebastian.droege>, Janne Liljeblad</sebastian.droege>

Classification: – `Filter/Effect/Video`

Rank – none

Plugin – frei0r

Package – GStreamer Bad Plug-ins

## Pad Templates

### `sink`

    video/x-raw:
             format: RGBA
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]

Presence – always

Direction – sink

Object type – GstPad

### `src`

    video/x-raw:
             format: RGBA
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]

Presence – always

Direction – src

Object type – GstPad

## Properties

### blend-mode

    “blend-mode” gchararray

Blend mode used to compose gradient on image. Accepted values: 'normal', 'add', 'saturate', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'colordodge', 'colorburn', 'hardlight', 'softlight', 'difference', 'exclusion', 'hslhue', 'hslsaturation', 'hslcolor', 'hslluminosity'

Flags : Read / Write

Default value : normal

### end-color-b

    “end-color-b” gfloat

Second color of the gradient

Flags : Read / Write

Default value : 1

### end-color-g

    “end-color-g” gfloat

Second color of the gradient

Flags : Read / Write

Default value : 1

### end-color-r

    “end-color-r” gfloat

Second color of the gradient

Flags : Read / Write

Default value : 1

### end-opacity

    “end-opacity” gdouble

Opacity of the second color of the gradient

Flags : Read / Write

Default value : 0.5

### end-x

    “end-x” gdouble

X position of the end point of the gradient

Flags : Read / Write

Default value : 0.5

### end-y

    “end-y” gdouble

Y position of the end point of the gradient

Flags : Read / Write

Default value : 1

### offset

    “offset” gdouble

Position of first color in the line connecting gradient ends, really useful only for radial gradient

Flags : Read / Write

Default value : 0

### pattern

    “pattern” gchararray

Linear or radial gradient

Flags : Read / Write

Default value : gradient_linear

### start-color-b

    “start-color-b” gfloat

First color of the gradient

Flags : Read / Write

Default value : 0

### start-color-g

    “start-color-g” gfloat

First color of the gradient

Flags : Read / Write

Default value : 0

### start-color-r

    “start-color-r” gfloat

First color of the gradient

Flags : Read / Write

Default value : 0

### start-opacity

    “start-opacity” gdouble

Opacity of the first color of the gradient

Flags : Read / Write

Default value : 0.5

### start-x

    “start-x” gdouble

X position of the start point of the gradient

Flags : Read / Write

Default value : 0.5

### start-y

    “start-y” gdouble

Y position of the start point of the gradient

Flags : Read / Write

Default value : 0

The results of the search are