Il filtro può essere un attributo di un elemento immagine o video, che influisce su quell'elemento specifico, oppure può essere un elemento stesso, applicandosi all'intero canvas.
| Proprietà | Tipo | Richiesto | Esempio | Intervallo di valori | Descrizione |
|---|---|---|---|---|---|
| type | string | true | Pixelate | Pixelate | Ascii | CRT | Glitch | Bloom | RGB Split | Old Film | Dot | Emboss | Hatch | Basic Blur | Motion Blur | TiltShift | Zoom | Glow | Noise | Koda | Polaroid | Sepia | Lsd | Desaturate | Saturate | Il tipo di agente filtro applicato all'elemento immagine o video. |
| options | array | true | - | - | Un array di opzioni filtro. |
{
"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
}