Supported Types
For generating an image, the user can specify values of different components of the image. Each component has a type associated with it. It could be a primary type like String / Int or a specific type like Position / Size.
Here is the definition of types supported by the components.
Basic Types
String
Any valid string
Int
Any valid integer
Specific Types
Position
Position defines the location in X, Y cordinate
{
 "x": 100,
 "y": 200
}Size
Size defines the width and height of the object
{
  "h": 100,
  "w": 100
}URL
Any valid URL
Opacity
It's a float value in the range of 0 to 1
Color
The color should be a valid hex code
Updated about 1 month ago
