---
title: "shape.effects: Shape Effects — Slide kit command — Kition"
description: "Sets shadow, glow, soft edges, reflection, bevel or 3-D rotation effects. The shadow presets: `outer` is Offset: Bottom Right (black at 40 %, blurred 4 pt, 3 pt down and right; subtle by design), `bottom` is Offset: Bottom, `center` is Offset: Center; give {color, blur, dist, dir} (points, degrees) for a stronger one. Applies to the shapes in `ids` (on slide `onSlide`, from 1) or else the selection."
canonical: "https://developer.kition.ai/docs/kits/slide/commands/shape.effects"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/slide/commands/shape.effects](https://developer.kition.ai/docs/kits/slide/commands/shape.effects)

# shape.effects

**Shape Effects.** Sets shadow, glow, soft edges, reflection, bevel or 3-D rotation effects. The shadow presets: `outer` is Offset: Bottom Right (black at 40 %, blurred 4 pt, 3 pt down and right; subtle by design), `bottom` is Offset: Bottom, `center` is Offset: Center; give {color, blur, dist, dir} (points, degrees) for a stronger one. Applies to the shapes in `ids` (on slide `onSlide`, from 1) or else the selection.

- Kit: Slide 0.1.0 (.kslide and .pptx); reference: [Slide kit commands](https://developer.kition.ai/docs/kits/slide.md)
- Changes the document: yes
- Acts on: `ids` (a list of ids), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `bevel` | `any` | no | none\|circle\|… |
| `glow` | `number \| object \| null \| "none"` | no | glow radius in points or custom glow; null or none removes it |
| `ids` | `(integer \| string)[]` | no |  |
| `onSlide` | `integer` | no | the slide the ids are on, from 1 |
| `reflection` | `"none" \| "tight" \| "half" \| "full"` | no |  |
| `reset` | `boolean` | no | remove every effect |
| `shadow` | `string \| object` | no | shadow preset or custom shadow |
| `softEdges` | `number (≥ 0, ≤ 100)` | no | soft edge radius in points; zero removes it |

## Call through slide_run

```text
slide_run {
  "path": "<file>.pptx",
  "steps": [{ "command": "shape.effects" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `bevel`, `glow`, `ids`, `onSlide`, `reflection`, `reset`, `shadow`, `softEdges`. slide_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "bevel": {
      "description": "none|circle|…"
    },
    "glow": {
      "description": "glow radius in points or custom glow; null or none removes it",
      "oneOf": [
        {
          "maximum": 150,
          "minimum": 0,
          "type": "number"
        },
        {
          "additionalProperties": false,
          "properties": {
            "color": {},
            "radius": {
              "maximum": 150,
              "minimum": 0,
              "type": "number"
            }
          },
          "type": "object"
        },
        {
          "type": "null"
        },
        {
          "enum": [
            "none"
          ],
          "type": "string"
        }
      ]
    },
    "ids": {
      "items": {
        "description": "an id",
        "oneOf": [
          {
            "type": "integer"
          },
          {
            "type": "string"
          }
        ]
      },
      "type": "array",
      "x-khp-types": [
        "Shape"
      ]
    },
    "onSlide": {
      "description": "the slide the ids are on, from 1",
      "type": "integer"
    },
    "reflection": {
      "enum": [
        "none",
        "tight",
        "half",
        "full"
      ],
      "type": "string"
    },
    "reset": {
      "description": "remove every effect",
      "type": "boolean"
    },
    "shadow": {
      "description": "shadow preset or custom shadow",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "additionalProperties": false,
          "properties": {
            "blur": {
              "maximum": 200,
              "minimum": 0,
              "type": "number"
            },
            "color": {},
            "dir": {
              "type": "number"
            },
            "dist": {
              "maximum": 200,
              "minimum": 0,
              "type": "number"
            },
            "inner": {
              "type": "boolean"
            }
          },
          "type": "object"
        }
      ]
    },
    "softEdges": {
      "description": "soft edge radius in points; zero removes it",
      "maximum": 100,
      "minimum": 0,
      "type": "number"
    }
  },
  "type": "object",
  "x-khp-position": "independent"
}
```

Generated from the command list of @kition/slide-darwin-arm64@0.1.0 and the kit itself (slide_commands through @kition/cli@0.1.1, built from KitionAI/kition-slide@7ef3d11).
