Shapes
createLine
-
Use: To create a Line element
-
Definition:
createLine(
long x1, long y1, long x2, long y2, long line_thickness, uint32_t fill_color , String id
)
-
Parameters:
- long x1 : The x1 co-ordinate of the Line in
px
- long y1 : The y1 co-ordinate of the Line in
px
- long x2 : The x2 co-ordinate of the Line in
px
- long y2 : The y2 co-ordinate of the Line in
px
- long line_thickness : The thickness of the Line in
px
- uint32_t fill_color : The color of the Line to be displayed ( you can use the color() function to apply RGB values directly )
- String id : ID of the Line element as a String
- long x1 : The x1 co-ordinate of the Line in
-
Returns: ID of the Line element as a String
createRect
-
Use: To create a Outilned Rectangle element
-
Definition:
createRect(
long x, long y, long w, long h, long border_thickness, uint32_t b_color, String id
)
-
Parameters:
- long x : The position of the Rectangle from its top-left corner along x-axis (horizontal) of the screen in
px
- long y : The position of the Rectangle from its top-left corner along y-axis (vertical) of the screen in
px
- long w : The width of the Rectangle in
px
- long h : The height of the Rectangle in
px
- long border_thickness : The border thickness of the Rectangle in
px
- uint32_t b_color : The border color of the Rectangle to be displayed ( you can use the color() function to apply RGB values directly )
- String id : ID of the Outlined Rectangle element as a String
- long x : The position of the Rectangle from its top-left corner along x-axis (horizontal) of the screen in
-
Returns: ID of the Outlined Rectangle element as a String
createRoundRect
-
Use: To create a Outilned Round-Cornered Rectangle element
-
Definition:
createRoundRect(
long x, long y, long w, long h, long border_thickness, long border_radius, uint32_t b_color , String id
)
-
Parameters:
- long x : The position of the Rectangle from its top-left corner along x-axis (horizontal) of the screen in
px
- long y : The position of the Rectangle from its top-left corner along y-axis (vertical) of the screen in
px
- long w : The width of the Rectangle in
px
- long h : The height of the Rectangle in
px
- long border_thickness : The border thickness of the Rectangle in
px
- long border_radius : The border radius of the Rectangle in
px
- uint32_t b_color : The border color of the Rectangle to be displayed ( you can use the color() function to apply RGB values directly )
- String id : ID of the Outlined Round-Cornered Rectangle element as a String
- long x : The position of the Rectangle from its top-left corner along x-axis (horizontal) of the screen in
-
Returns: ID of the Outlined Round-Cornered Rectangle element as a String
createFilledRect
-
Use: To create a Filled Rectangle element
-
Definition:
createFilledRect(
long x, long y, long w, long h, uint32_t fill_color, String id
)
-
Parameters:
- long x : The position of the Rectangle from its top-left corner along x-axis (horizontal) of the screen in
px
- long y : The position of the Rectangle from its top-left corner along y-axis (vertical) of the screen in
px
- long w : The width of the Rectangle in
px
- long h : The height of the Rectangle in
px
- uint32_t fill_color : The fill color of the Rectangle to be displayed ( you can use the color() function to apply RGB values directly )
- String id : ID of the Filled Rectangle element as a String
- long x : The position of the Rectangle from its top-left corner along x-axis (horizontal) of the screen in
-
Returns: ID of the Filled Rectangle element as a String
createFilledRoundRect
-
Use: To create a Filled Round-Conered Rectangle element
-
Definition:
createFilledRoundRect(
long x, long y, long w, long h, long border_radius, uint32_t fill_color , String id
)
-
Parameters:
- long x : The position of the Rectangle from its top-left corner along x-axis (horizontal) of the screen in
px
- long y : The position of the Rectangle from its top-left corner along y-axis (vertical) of the screen in
px
- long w : The width of the Rectangle in
px
- long h : The height of the Rectangle in
px
- long border_radius : The border radius of the Rectangle in
px
- uint32_t fill_color : The fill color of the Rectangle to be displayed ( you can use the color() function to apply RGB values directly )
- String id : ID of the Outlined Round-Cornered Rectangle element as a String
- long x : The position of the Rectangle from its top-left corner along x-axis (horizontal) of the screen in
-
Returns: ID of the Outlined Round-Cornered Rectangle element as a String
String createCircle(long x, long y, long radius, long border_thickness, uint32_t b_color , String id);
createCircle
-
Use: To create a Outlined Circle element
-
Definition:
createCircle(
long x, long y, long radius, long border_thickness, uint32_t b_color , String id
)
-
Parameters:
- long x : The position of the Circle from its center along x-axis (horizontal) of the screen in
px
- long y : The position of the Circle from its center along y-axis (vertical) of the screen in
px
- long radius : The radius of the Circle in
px
- long border_thickness : The border radius of the Circle in
px
- uint32_t b_color : The border color of the Circle to be displayed ( you can use the color() function to apply RGB values directly )
- String id : ID of the Outlined Circle element as a String
- long x : The position of the Circle from its center along x-axis (horizontal) of the screen in
-
Returns: ID of the Outlined Circle element as a String
createFilledCircle
-
Use: To create a Filled Circle element
-
Definition:
createFilledCircle(
long x, long y, long radius, uint32_t fill_color, String id
)
-
Parameters:
- long x : The position of the Circle from its center along x-axis (horizontal) of the screen in
px
- long y : The position of the Circle from its center along y-axis (vertical) of the screen in
px
- long radius : The radius of the Circle in
px
- uint32_t fill_color : The fill color of the Circle to be displayed ( you can use the color() function to apply RGB values directly )
- String id : ID of the Filled Circle element as a String
- long x : The position of the Circle from its center along x-axis (horizontal) of the screen in
-
Returns: ID of the Filled Circle element as a String
createTriangle
-
Use: To create a Outlined Triangle element
-
Definition:
createTriangle(
long x1, long y1, long x2, long y2, long x3, long y3, long border_thickness, uint32_t b_color, String id
)
-
Parameters:
- long x1 : The x1 co-ordinate of the Triangle in
px
- long y1 : The y1 co-ordinate of the Triangle in
px
- long x2 : The x2 co-ordinate of the Triangle in
px
- long y2 : The y2 co-ordinate of the Triangle in
px
- long x3 : The x3 co-ordinate of the Triangle in
px
- long y3 : The y3 co-ordinate of the Triangle in
px
- long border_thickness : The border radius of the Triangle in
px
- uint32_t b_color : The border color of the Triangle to be displayed ( you can use the color() function to apply RGB values directly )
- String id : ID of the Outlined Triangle element as a String
- long x1 : The x1 co-ordinate of the Triangle in
-
Returns: ID of the Outlined Triangle element as a String
createFilledTriangle
-
Use: To create a Filled Triangle element
-
Definition:
createFilledTriangle(
long x1, long y1, long x2, long y2, long x3, long y3, uint32_t fill_color, String id
)
-
Parameters:
- long x1 : The x1 co-ordinate of the Triangle in
px
- long y1 : The y1 co-ordinate of the Triangle in
px
- long x2 : The x2 co-ordinate of the Triangle in
px
- long y2 : The y2 co-ordinate of the Triangle in
px
- long x3 : The x3 co-ordinate of the Triangle in
px
- long y3 : The y3 co-ordinate of the Triangle in
px
- uint32_t fill_color : The fill color of the Triangle to be displayed ( you can use the color() function to apply RGB values directly )
- String id : ID of the Filled Triangle element as a String
- long x1 : The x1 co-ordinate of the Triangle in
-
Returns: ID of the Filled Triangle element as a String