drawing_fillRectangle
Fill a rectangle on a drawing canvas with a specified color by defining top-left coordinates, width, height, and RGB values using the mcp-painter tool.
Instructions
Fill a rectangle on the drawing canvas with a specified color and coordinates.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
color | Yes | Color to fill the rectangle with (RGB) | |
height | Yes | Height of the rectangle | |
width | Yes | Width of the rectangle | |
x | Yes | X coordinate of the top-left corner of the rectangle | |
y | Yes | Y coordinate of the top-left corner of the rectangle |
Input Schema (JSON Schema)
{
"properties": {
"color": {
"description": "Color to fill the rectangle with (RGB)",
"properties": {
"a": {
"description": "Alpha component (0-255, optional, default 255)",
"type": "number"
},
"b": {
"description": "Blue component (0-255)",
"type": "number"
},
"g": {
"description": "Green component (0-255)",
"type": "number"
},
"r": {
"description": "Red component (0-255)",
"type": "number"
}
},
"required": [
"r",
"g",
"b"
],
"type": "object"
},
"height": {
"description": "Height of the rectangle",
"type": "number"
},
"width": {
"description": "Width of the rectangle",
"type": "number"
},
"x": {
"description": "X coordinate of the top-left corner of the rectangle",
"type": "number"
},
"y": {
"description": "Y coordinate of the top-left corner of the rectangle",
"type": "number"
}
},
"required": [
"x",
"y",
"width",
"height",
"color"
],
"type": "object"
}