{"json_modified": "2016-09-23T02:45:40.135759", "uuid": "4278d457-2b82-4422-abbb-f2a1e450d0a9", "title": "Utilisation de base des canvas", "url": "/fr/docs/Tutoriel_canvas/Utilisation_de_base", "tags": ["Canvas", "Tutoriel_canvas", "Tutoriels", "NeedsLiveSamples", "HTML", "Graphics", "Intermediate"], "translations": [{"uuid": "ddffca8a-3221-4aa7-abc9-900f6ef75ca6", "title": "Basic usage of canvas", "url": "/en-US/docs/Web/API/Canvas_API/Tutorial/Basic_usage", "tags": ["Canvas", "Graphics", "HTML", "Tutorial", "Intermediate"], "summary": "At first sight a <canvas>
looks like the <img>
element, with the only clear difference being that it doesn't have the src
and alt
attributes. Indeed, the <canvas>
element has only two attributes, width
and height
. These are both optional and can also be set using DOM properties. When no width
and height
attributes are specified, the canvas will initially be 300 pixels wide and 150 pixels high. The element can be sized arbitrarily by CSS, but during rendering the image is scaled to fit its layout size: if the CSS sizing doesn't respect the ratio of the initial canvas, it will appear distorted.", "localization_tags": [], "locale": "en-US", "last_edit": "2016-07-10T13:12:10", "review_tags": []}, {"uuid": "ffdb2849-8e69-42eb-a10f-0f43d0cfc92b", "title": "Canvas \u098f\u09b0 \u09ae\u09cc\u09b2\u09bf\u0995 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0", "url": "/bn-BD/docs/Web/Guide/HTML/Canvas_tutorial/Basic_usage", "tags": ["Canvas", "\u099f\u09bf\u0989\u099f\u09cb\u09b0\u09bf\u09df\u09be\u09b2", "NeedsReview", "\u0995\u09cd\u09af\u09be\u09a8\u09ad\u09be\u09b8", "HTML", "Tutorial", "\u0997\u09cd\u09b0\u09be\u09ab\u09bf\u0995\u09cd\u09b8"], "summary": "<canvas>
\u09ac\u09bf\u09b7\u09df\u09c7 \u0986\u09ae\u09be\u09a6\u09c7\u09b0 \u0986\u099c\u0995\u09c7\u09b0 \u099f\u09bf\u0989\u099f\u09cb\u09b0\u09bf\u09df\u09be\u09b2 \u099a\u09b2\u09c1\u09a8 \u09b6\u09c1\u09b0\u09c1 \u0995\u09b0\u09be \u09af\u09be\u0995\u0964", "localization_tags": ["inprogress"], "locale": "bn-BD", "last_edit": "2014-01-07T01:03:14", "review_tags": []}, {"uuid": "f1fe0505-235f-451a-8767-4415cdb0876e", "title": "Z\u00e1kladn\u00ed pou\u017eit\u00ed", "url": "/cs/docs/Canvas_tutori%C3%A1l/Z%C3%A1kladn%C3%AD_pou%C5%BEit%C3%AD", "tags": ["Canvas tutorial"], "summary": "", "localization_tags": [], "locale": "cs", "last_edit": "2014-05-24T09:18:55", "review_tags": []}, {"uuid": "a30a51a2-986b-4513-b887-9fb51784a05f", "title": "Grundlagen Canvas", "url": "/de/docs/Web/Guide/HTML/Canvas_Tutorial/Grundlagen", "tags": [], "summary": "Beginnen wir mit dem <canvas>
Element:", "localization_tags": ["inprogress"], "locale": "de", "last_edit": "2016-07-15T03:32:05", "review_tags": []}, {"uuid": "d9bb9a9a-6c36-4c1b-b9bc-5ecfc2e2c6c5", "title": "Basic usage of Canvas", "url": "/es/docs/Web/Guide/HTML/Canvas_tutorial/Basic_usage", "tags": [], "summary": "A primera vista, un elemento <canvas>
es parecido al elemento <img>
, con la\u00a0diferencia que este no tiene los atributos src
y alt
. El elemento <canvas>
tiene solo dos atributos - width
y height
. Ambos son opcionales y pueden ser definidos usando propiedades DOM. Cuando los atributos ancho y alto no estan especificados, el lienzo se inicializara con\u00a0300 pixels ancho y 150 pixels de alto. El elemento puede ser arbitrariamente redimensionado por CSS, pero durante el renderizado la imagen es escalada para ajustarse al tama\u00f1o de su layout.", "localization_tags": [], "locale": "es", "last_edit": "2015-12-20T04:07:29", "review_tags": []}, {"uuid": "91b6667f-2ad6-4c03-a733-51c3a0b991ab", "title": "Basic usage of canvas", "url": "/ja/docs/Web/Guide/HTML/Canvas_tutorial/Basic_usage", "tags": [], "summary": "<canvas>
\u306f <img>
\u3068\u4f3c\u3066\u3044\u307e\u3059\u3002src
\u5c5e\u6027\u3068 alt
\u5c5e\u6027\u304c\u306a\u3044\u70b9\u304c\u660e\u78ba\u306b\u7570\u306a\u308a\u307e\u3059\u304c\u3001width
\u3068 height
\u306e\u5c5e\u6027\u304c\u3042\u308b\u70b9\u306a\u3069\u306f\u5171\u901a\u3057\u3066\u3044\u307e\u3059\u3002 \u3053\u308c\u3089\u306e\u5c5e\u6027\u306f\u5fc5\u305a\u6307\u5b9a\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u307b\u304b\u306b\u69d8\u3005\u306a DOM \u5c5e\u6027\u3092\u5229\u7528\u3067\u304d\u307e\u3059\u3002 width
\u3068 height
\u5c5e\u6027\u304c\u6307\u5b9a\u3055\u308c\u306a\u304b\u3063\u305f\u5834\u5408\u3001canvas \u306f\u5e45 300 \u30d4\u30af\u30bb\u30eb\u3001\u9ad8\u3055 150 \u30d4\u30af\u30bb\u30eb\u306e\u8981\u7d20\u3068\u3057\u3066\u521d\u671f\u5316\u3055\u308c\u307e\u3059\u3002\u753b\u9762\u4e0a\u306e\u5927\u304d\u3055\u306f CSS \u306b\u3088\u3063\u3066\u5909\u66f4\u3067\u304d\u307e\u3059\u304c\u3001\u305d\u306e\u5834\u5408 canvas \u306b\u63cf\u753b\u3055\u308c\u308b\u753b\u50cf\u306f CSS \u306e\u6307\u5b9a\u306b\u5408\u308f\u305b\u3066\u62e1\u5927 / \u7e2e\u5c0f\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u969b\u3001\u5143\u306e\u753b\u50cf\u306e\u30a2\u30b9\u30da\u30af\u30c8\u6bd4\u306f\u8003\u616e\u3055\u308c\u306a\u3044\u305f\u3081\u3001\u6307\u5b9a\u306e\u4ed5\u65b9\u306b\u3088\u3063\u3066\u306f\u753b\u50cf\u304c\u6b6a\u3093\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2016-08-27T07:50:58", "review_tags": ["editorial"]}, {"uuid": "98009c3a-32a9-4000-b6e0-65304846ca56", "title": "\uae30\ubcf8 \uc0ac\uc6a9\ubc95", "url": "/ko/docs/Canvas_tutorial/Basic_usage", "tags": ["Tutorials", "HTML:Canvas", "Canvas tutorial"], "summary": "\uc774 \uc785\ubb38\uc11c\ub294 <canvas>
\uc5d8\ub9ac\uba3c\ud2b8 \uc790\uccb4\ub97c \uc0b4\ud3b4\ubcf4\ub294 \uac83\uc73c\ub85c \uc2dc\uc791\ud558\uaca0\uc2b5\ub2c8\ub2e4.", "localization_tags": [], "locale": "ko", "last_edit": "2016-07-17T20:07:56", "review_tags": []}, {"uuid": "4fdb57ba-2abf-4d67-9882-fdcbe95e0ad8", "title": "Utiliza\u00e7\u00e3o b\u00e1sica do Canvas", "url": "/pt-BR/docs/Web/Guide/HTML/Canvas_tutorial/Utilizacao_basica", "tags": ["Canvas", "graficos", "Gr\u00e1ficos", "Intermedi\u00e1rio", "HTML", "Tutorial"], "summary": "Vamos come\u00e7ar esse tutorial olhando o elemento \u00a0<canvas>
em si.", "localization_tags": [], "locale": "pt-BR", "last_edit": "2014-09-03T13:58:26", "review_tags": []}, {"uuid": "4023712f-81cf-4085-8f82-73886352afba", "title": "\u0411\u0430\u0437\u043e\u0432\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Canvas", "url": "/ru/docs/Web/API/Canvas_API/Tutorial/Basic_usage", "tags": [], "summary": "\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u0447\u043d\u0435\u043c \u044d\u0442\u043e\u0442 \u0443\u0440\u043e\u043a\u00a0\u0441 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 <canvas>
\u043a\u0430\u043a \u0442\u0430\u043a\u043e\u0432\u043e\u0433\u043e. \u0412 \u043a\u043e\u043d\u0446\u0435 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0412\u044b \u0443\u0437\u043d\u0430\u0435\u0442\u0435 \u043a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c canvas 2D context \u0438 \u043d\u0430\u0440\u0438\u0441\u0443\u0435\u0442\u0435 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u0432\u0430\u0448\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435.", "localization_tags": [], "locale": "ru", "last_edit": "2016-02-08T23:28:06", "review_tags": ["technical"]}, {"uuid": "0721b048-b432-4f6a-8c02-a3b96c03a25c", "title": "Canvas\u7684\u57fa\u672c\u7528\u6cd5", "url": "/zh-CN/docs/Web/API/Canvas_API/Tutorial/Basic_usage", "tags": ["\u56fe\u50cf", "Canvas", "\u4e2d\u7ea7", "HTML", "\u6559\u7a0b"], "summary": "<canvas>
\u00a0\u770b\u8d77\u6765\u548c\u00a0<img>
\u5143\u7d20\u5f88\u76f8\u50cf\uff0c\u552f\u4e00\u7684\u4e0d\u540c\u5c31\u662f\u5b83\u5e76\u6ca1\u6709 src \u548c alt \u5c5e\u6027\u3002\u5b9e\u9645\u4e0a\uff0c<canvas>
\u6807\u7b7e\u53ea\u6709\u4e24\u4e2a\u5c5e\u6027\u2014\u2014 width
\u548cheight
\u3002\u8fd9\u4e9b\u90fd\u662f\u53ef\u9009\u7684\uff0c\u5e76\u4e14\u540c\u6837\u5229\u7528 DOM properties \u6765\u8bbe\u7f6e\u3002\u5f53\u6ca1\u6709\u8bbe\u7f6e\u5bbd\u5ea6\u548c\u9ad8\u5ea6\u7684\u65f6\u5019\uff0ccanvas\u4f1a\u521d\u59cb\u5316\u5bbd\u5ea6\u4e3a300\u50cf\u7d20\u548c\u9ad8\u5ea6\u4e3a150\u50cf\u7d20\u3002\u8be5\u5143\u7d20\u53ef\u4ee5\u4f7f\u7528CSS\u6765\u5b9a\u4e49\u5927\u5c0f\uff0c\u4f46\u5728\u7ed8\u5236\u65f6\u56fe\u50cf\u4f1a\u4f38\u7f29\u4ee5\u9002\u5e94\u5b83\u7684\u6846\u67b6\u5c3a\u5bf8\uff1a\u5982\u679cCSS\u7684\u5c3a\u5bf8\u4e0e\u521d\u59cb\u753b\u5e03\u7684\u6bd4\u4f8b\u4e0d\u4e00\u81f4\uff0c\u5b83\u4f1a\u51fa\u73b0\u626d\u66f2\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2016-02-01T03:42:59", "review_tags": []}, {"uuid": "371d6547-be91-46a9-861a-86383fe1d845", "title": "Canvas\u7684\u57fa\u672c\u7528\u9014", "url": "/zh-TW/docs/Web/API/Canvas_API/Tutorial/Basic_usage", "tags": [], "summary": "\u9996\u5148\uff0c\u5148\u4f86\u770b\u770b<canvas>
\u9019\u500b\u5143\u7d20", "localization_tags": [], "locale": "zh-TW", "last_edit": "2016-07-06T08:22:56", "review_tags": []}], "modified": "2016-09-23T02:45:39", "label": "Utilisation de base des canvas", "localization_tags": [], "locale": "fr", "id": 132857, "last_edit": "2016-09-23T02:45:33", "summary": "Commen\u00e7ons par regarder l'\u00e9l\u00e9ment <canvas>
lui-m\u00eame.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "L'\u00e9l\u00e9ment_