{"json_modified": "2016-03-28T08:38:43.236778", "uuid": "0c743067-7a3a-4145-8cee-56876fd921b8", "title": "CanvasRenderingContext2D.rect()", "url": "/en-US/docs/Web/API/CanvasRenderingContext2D/rect", "tags": ["Canvas", "API", "Reference", "R\u00e9f\u00e9rence", "CanvasRenderingContext2D", "Method"], "translations": [{"uuid": "ca0a99da-6929-456a-b29e-e00e4d116da3", "title": "CanvasRenderingContext2D.rect()", "url": "/ru/docs/Web/API/CanvasRenderingContext2D/rect", "tags": ["Canvas", "API", "Reference", "R\u00e9f\u00e9rence", "CanvasRenderingContext2D", "Method"], "summary": "\u041c\u0435\u0442\u043e\u0434 CanvasRenderingContext2D
.rect()
, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0439 Canvas 2D API, \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0443\u0440 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u0432 \u043f\u043e\u0437\u0438\u0446\u0438\u0438\u00a0(x, y), \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 width \u0438 height. \u0427\u0435\u0442\u044b\u0440\u0435 \u0442\u043e\u0447\u043a\u0438 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u043f\u0440\u044f\u043c\u044b\u043c\u0438 \u043b\u0438\u043d\u0438\u044f\u043c\u0438, \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u043d\u0442\u0443\u0440\u0430 \u043e\u0442\u043c\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0437\u0430\u043c\u043a\u043d\u0443\u0442\u044b\u0439, \u0442\u0430\u043a \u0447\u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0437\u0430\u043b\u0438\u0432\u043a\u0443 \u0438\u043b\u0438 \u043e\u0431\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0443\u0440.", "localization_tags": [], "locale": "ru", "last_edit": "2015-04-30T14:29:39", "review_tags": ["editorial"]}, {"uuid": "7c0db838-703d-4754-9f02-91f874c93989", "title": "CanvasRenderingContext2D.rect()", "url": "/zh-CN/docs/Web/API/CanvasRenderingContext2D/rect", "tags": [], "summary": "CanvasRenderingContext2D
.rect()
\u662f Canvas 2D API \u521b\u5efa\u77e9\u5f62\u8def\u5f84\u7684\u65b9\u6cd5\uff0c\u77e9\u5f62\u7684\u8d77\u70b9\u4f4d\u7f6e\u662f\u00a0(x, y) \uff0c\u5c3a\u5bf8\u4e3a\u00a0width \u548c\u00a0height\u3002\u77e9\u5f62\u76844\u4e2a\u70b9\u901a\u8fc7\u76f4\u7ebf\u8fde\u63a5\uff0c\u5b50\u8def\u5f84\u505a\u4e3a\u95ed\u5408\u7684\u6807\u8bb0\uff0c\u6240\u4ee5\u4f60\u53ef\u4ee5\u586b\u5145\u6216\u8005\u63cf\u8fb9\u77e9\u5f62\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2015-06-08T01:14:30", "review_tags": []}], "modified": "2016-02-02T03:43:02", "label": "CanvasRenderingContext2D.rect()", "localization_tags": [], "locale": "en-US", "id": 129067, "last_edit": "2014-11-20T14:51:13", "summary": "The CanvasRenderingContext2D
.rect()
method of the Canvas 2D API creates a path for a rectangle at position (x, y) with a size that is determined by width and height. Those four points are connected by straight lines and the sub-path is marked as closed, so that you can fill
or stroke
this rectangle.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Examples", "title": "Examples"}, {"id": "Using_the_rect_method", "title": "Using the "}, {"id": "HTML", "title": "HTML"}, {"id": "JavaScript", "title": "JavaScript"}, {"id": "Playable_code", "title": "Playable code"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/API/CanvasRenderingContext2D/rect", "review_tags": []}