ps_add_text_layer
Add a text layer to the active Photoshop document with specified content, size, position, and RGB color.
Instructions
在当前 Photoshop 文档中添加文字图层。text 为文字内容,size 字号(像素),x/y 为左上角位置(像素),r/g/b 为文字颜色 RGB。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| b | No | 蓝色 0-255,默认 0 | |
| g | No | 绿色 0-255,默认 0 | |
| r | No | 红色 0-255,默认 0 | |
| x | No | X 坐标(像素,左上角),默认 50 | |
| y | No | Y 坐标(像素,左上角),默认 100 | |
| size | No | 字号(像素),默认 48 | |
| text | Yes | 文字内容 |