Create a new rectangle object.
Arguments
- x
A number. Rectangle top-left corner position x.
- y
A number. Rectangle top-left corner position y.
- width
A number. Rectangle width.
- height
A number. Rectangle height.
Note
This class has been auto-generated from the following Raylib struct definition:
typedef struct Rectangle {// Rectangle top-left corner position x
float x; // Rectangle top-left corner position y
float y; // Rectangle width
float width; // Rectangle height
float height; } Rectangle;
See also
Other rectangle functions:
draw_rectangle_gradient_ex()
,
draw_rectangle_gradient_h()
,
draw_rectangle_gradient_v()
,
draw_rectangle_lines_ex()
,
draw_rectangle_lines()
,
draw_rectangle_pro()
,
draw_rectangle_rec()
,
draw_rectangle_rounded_lines()
,
draw_rectangle_rounded()
,
draw_rectangle_v()
,
draw_rectangle()
,
image_draw_rectangle_lines()
,
image_draw_rectangle_rec()
,
image_draw_rectangle_v()
,
image_draw_rectangle()