aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/webglrenderingcontext/canvas/index.html
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-10-02 17:20:14 +0200
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-10-02 17:30:20 +0200
commitc05efa8d7ae464235cf83d7c0956e42dc6974103 (patch)
tree6ea911b2f2010f63a026de6bb7a1a51e7690a7e1 /files/fr/web/api/webglrenderingcontext/canvas/index.html
parent13a5e017558b248ee1647d4a5825f183b51f09ad (diff)
downloadtranslated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.gz
translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.bz2
translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.zip
move *.html to *.md
Diffstat (limited to 'files/fr/web/api/webglrenderingcontext/canvas/index.html')
-rw-r--r--files/fr/web/api/webglrenderingcontext/canvas/index.html74
1 files changed, 0 insertions, 74 deletions
diff --git a/files/fr/web/api/webglrenderingcontext/canvas/index.html b/files/fr/web/api/webglrenderingcontext/canvas/index.html
deleted file mode 100644
index ccdfa7ed8a..0000000000
--- a/files/fr/web/api/webglrenderingcontext/canvas/index.html
+++ /dev/null
@@ -1,74 +0,0 @@
----
-title: WebGLRenderingContext.canvas
-slug: Web/API/WebGLRenderingContext/canvas
-tags:
- - Propriété
- - WebGL
- - WebGLRenderingContext
- - lecture seule
-translation_of: Web/API/WebGLRenderingContext/canvas
-original_slug: Web/API/WebGLRenderingContext/canevas
----
-<div>{{APIRef("WebGL")}}</div>
-
-<p>La propriété <code>WebGLRenderingContext.canvas</code> est une référence en lecture seule à l'objet {{domxref("HTMLCanvasElement")}} ou {{domxref("OffscreenCanvas")}} associé au contexte. Il peut s'agir de {{jsxref("null")}} s'il n'est pas associé à un élément {{HTMLElement("canvas")}} ou à un objet {{domxref("OffscreenCanvas")}}.</p>
-
-<h2 id="Syntaxe">Syntaxe</h2>
-
-<pre class="syntaxbox"><var><em>gl</em></var>.canvas;</pre>
-
-<h3 id="Valeur_retournée">Valeur retournée</h3>
-
-<p>Soit un objet {{domxref("HTMLCanvasElement")}} ou {{domxref("OffscreenCanvas")}}, soit {{jsxref("null")}}.</p>
-
-<h2 id="Exemples">Exemples</h2>
-
-<h3 id="Élément_canevas">Élément canevas</h3>
-
-<p>Étant donné cet élément {{HTMLElement("canvas")}} :</p>
-
-<pre class="brush: html">&lt;canvas id="canevas"&gt;&lt;/canvas&gt;
-</pre>
-
-<p>Vous pouvez en récupérer une référence à partir du <code>WebGLRenderingContext</code> en utilisant la propriété <code>canvas</code> :</p>
-
-<pre class="brush: js">var canevas = document.getElementById('canevas');
-var gl = canevas.getContext('webgl');
-gl.canvas; // HTMLCanvasElement
-</pre>
-
-<h3 id="Canevas_hors_écran">Canevas hors écran</h3>
-
-<p>Exemple d'utilisation de l'objet expérimental {{domxref("OffscreenCanvas")}}.</p>
-
-<pre class="brush: js">var horsEcran = new OffscreenCanvas(256, 256);
-var gl = horsEcran.getContext('webgl');
-gl.canvas; // OffscreenCanvas</pre>
-
-<h2 id="Spécifications">Spécifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Spécification</th>
- <th scope="col">Statut</th>
- <th scope="col">Commentaire</th>
- </tr>
- <tr>
- <td>{{SpecName('WebGL', "#DOM-WebGLRenderingContext-canvas", "WebGLRenderingContext.canvas")}}</td>
- <td>{{Spec2('WebGL')}}</td>
- <td>Définition initiale.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>
-
-<p>{{Compat("api.WebGLRenderingContext.canvas")}}</p>
-
-<h2 id="Voir_aussi">Voir aussi</h2>
-
-<ul>
- <li>{{domxref("CanvasRenderingContext2D.canvas")}}</li>
- <li>{{domxref("OffscreenCanvas")}}</li>
-</ul>