{"json_modified": "2016-03-28T08:38:31.168737", "uuid": "53c8b8d2-3322-4922-a557-c8c77a46f934", "title": "CanvasRenderingContext2D.createLinearGradient()", "url": "/en-US/docs/Web/API/CanvasRenderingContext2D/createLinearGradient", "tags": ["Canvas", "API", "Reference", "Gradients", "CanvasRenderingContext2D", "Method"], "translations": [{"uuid": "072e518f-696f-458f-ac94-0eb55844e132", "title": "CanvasRenderingContext2D.createLinearGradient()", "url": "/zh-CN/docs/Web/API/CanvasRenderingContext2D/createLinearGradient", "tags": [], "summary": "CanvasRenderingContext2D
.createLinearGradient()
\u65b9\u6cd5\u521b\u5efa\u4e00\u4e2a\u6cbf\u53c2\u6570\u5750\u6807\u6307\u5b9a\u7684\u76f4\u7ebf\u7684\u6e10\u53d8\u3002\u8be5\u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2a\u7ebf\u6027 CanvasGradient
\u5bf9\u8c61\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2015-06-08T00:58:33", "review_tags": []}], "modified": "2016-02-02T03:41:10", "label": "CanvasRenderingContext2D.createLinearGradient()", "localization_tags": [], "locale": "en-US", "id": 128713, "last_edit": "2015-07-16T10:01:57", "summary": "The CanvasRenderingContext2D
.createLinearGradient()
method of the Canvas 2D API creates a gradient along the line given by the coordinates represented by the parameters. This method returns a linear CanvasGradient
.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Return_value", "title": "Return value"}, {"id": "Examples", "title": "Examples"}, {"id": "Using_the_createLinearGradient_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": "Gecko-specific_notes", "title": "Gecko-specific notes"}, {"id": "See_also", "title": "See also"}], "slug": "Web/API/CanvasRenderingContext2D/createLinearGradient", "review_tags": []}