Filtro

El filtro puede ser un atributo de un elemento de imagen o video, afectando a ese elemento específico, o puede ser un elemento en sí, aplicándose a todo el lienzo.

PropTipoRequeridoEjemploRango de ValoresDescripción
typestringtruePixelatePixelate | Ascii | CRT | Glitch | Bloom | RGB Split | Old Film | Dot | Emboss | Hatch | Basic Blur | Motion Blur | TiltShift | Zoom | Glow | Noise | Koda | Polaroid | Sepia | Lsd | Desaturate | SaturateEl tipo de agente de filtro aplicado al elemento de imagen o video.
optionsarraytrue--Una matriz de opciones de filtro.
imageElement.json
{
"type": "",
"width": 1920,
"height": 1080,
"fill": "#000000",
"view": [
  {
    "id": "6b91fbc5-a69c-4783-8216-395b8feac9b2",
    "type": "Image",
    "start": 0,
    "duration": 5,
    "trackIndex": 1,
    "x": 0,
    "y": 0,
    "blendMode": "normal",
    "anchorX": 1310.5,
    "anchorY": 1965.5,
    "rotation": 0,
    "scaleX": 0.27473925209870265,
    "scaleY": 0.27473925209870265,
    "alpha": 1,
    "skewX": 0,
    "skewY": 0,
    "keyframes": [],
    "filterAgent": { "type": "RGB Split" },
    "externalUrl": "https://images.pexels.com/photos/30473423/pexels-photo-30473423.jpeg",
    "ext": "jpeg"
  }
],
"audio": [],
"effect": [
  {
    "id": "87043853-c68d-4553-a7cb-6f4d503e9f17",
    "start": 0,
    "duration": 5,
    "trackIndex": 0,
    "filterAgent": {
      "type": "Pixelate",
      "options": [{ "key": "size", "value": 8, "min": 1, "max": 100 }]
    },
    "type": "Filter"
  }
],
"transition": [],
"version": 0,
"duration": 5
}