publiclab/image-sequencer

View on GitHub
src/modules/DrawRectangle/info.json

Summary

Maintainability
Test Coverage
{
    "name": "draw-rectangle",
    "description": "It draws a rectangle on the image",
    "inputs": {
          "startingX":{
              "type": "integer",
              "desc": "starting x position of the rectangle",
              "default": 0
          },
        
      "startingY": {
        "type": "integer",
        "desc": "starting y position of the rectangle",
        "default": 0
      },

      "endX":{
        "type": "integer",
        "desc": "last x position of the rectangle",
        "default": 10
      },

      "endY":{
        "type": "integer",
        "desc": "last y position of the rectangle",
        "default": 10
      },

      "thickness":{
        "type": "integer",
        "desc": "thickness of border",
        "default": 1
      },

      "color":{
        "type": "text",
        "desc": "Select color",
        "default": "rgba(20,20,20,1)",
        "id": "color-picker"
      }
    },
 "docs-link":"https://github.com/publiclab/image-sequencer/blob/main/docs/MODULES.md#draw-rectangle-module"
}