# frei0r-filter-color-distance

Calculates the distance between the selected color and the current pixel and uses that value as new pixel value

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstBaseTransform
                        ╰──GstVideoFilter
                            ╰──frei0r-filter-color-distance

## Factory details

Authors: – Sebastian Dröge , Richard Spindler

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

### color-b

    “color-b” gfloat

The Source Color

Flags : Read / Write

Default value : 0.5

### color-g

    “color-g” gfloat

The Source Color

Flags : Read / Write

Default value : 0.5

### color-r

    “color-r” gfloat

The Source Color

Flags : Read / Write

Default value : 0.5

The results of the search are