diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:41:45 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:41:45 -0500 |
commit | 1109132f09d75da9a28b649c7677bb6ce07c40c0 (patch) | |
tree | 0dd8b084480983cf9f9680e8aedb92782a921b13 /files/he/web/html/element/canvas/index.html | |
parent | 4b1a9203c547c019fc5398082ae19a3f3d4c3efe (diff) | |
download | translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.tar.gz translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.tar.bz2 translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.zip |
initial commit
Diffstat (limited to 'files/he/web/html/element/canvas/index.html')
-rw-r--r-- | files/he/web/html/element/canvas/index.html | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/files/he/web/html/element/canvas/index.html b/files/he/web/html/element/canvas/index.html new file mode 100644 index 0000000000..eaac2dff23 --- /dev/null +++ b/files/he/web/html/element/canvas/index.html @@ -0,0 +1,70 @@ +--- +title: '<canvas>: תגית ליצירת צורות דו מימדיות' +slug: Web/HTML/Element/canvas +translation_of: Web/HTML/Element/canvas +--- +<div>{{HTMLRef}}</div> + +<p dir="rtl">תגית <strong><code><canvas></code></strong> מאפשרת ליצור צורות דו מימדיות ולהטמיע אותן במסמך ה-HTML. <br> + אלמנט זה יוצר אזור מלבני בו ניתן לצייר באמצעות קוד.</p> + +<div> </div> + +<table> + <tbody> + <tr> + <th>קטגוריה</th> + <td>סקריפטים והטמעת תכנים</td> + </tr> + <tr> + <th>תגיות הורים מורשות</th> + <td><abbr>, <audio>, <b>, <bdo>, <br>, <button>, <canvas>, <cite>, <code>, <command>, <data>, <datalist>, <dfn>, <em>, <embed>, <i>, <iframe>, <img>, <input>, <kbd>, <keygen>, <label>, <mark>, <math>, <meter>, <noscript>, <object>, <output>, <progress>, <q>, <ruby>, <samp>, <script>, <select>, <small>, <span>, <strong>, <sub>, <sup>, <svg>, <textarea>, <time>, <var>, <video>, <wbr> <br> + </td> + </tr> + <tr> + <th scope="row">ממשק DOM</th> + <td>{{domxref("HTMLCanvasElement")}}</td> + </tr> + </tbody> +</table> + +<h2 dir="rtl" id="תארים">תארים</h2> + +<p dir="rtl">תגית זו נכללת ברשימת <a href="https://developer.mozilla.org/he/docs/Web/HTML/%D7%AA%D7%90%D7%A8%D7%99%D7%9D_%D7%92%D7%9C%D7%95%D7%91%D7%9C%D7%99%D7%99%D7%9D">התארים הגלובליים</a>.</p> + +<p dir="rtl">{{htmlattrdef("height")}} - תכונה להגדרת גובה.</p> + +<p dir="rtl">{{htmlattrdef("width")}} - תכונה להגדרת רוחב.</p> + +<dl> + <dt dir="rtl"> + <h2 dir="rtl" id="דוגמא_-_כותרת_ופסקה">דוגמא - כותרת ופסקה</h2> + + <pre><canvas id="canvas" width="300" height="300"> + An alternative text describing what your canvas displays. +</canvas></pre> + + <h4 dir="rtl" id="דדגכ">דדגכ</h4> + + <pre><script> +var canvas = document.getElementById('canvas'); +var ctx = canvas.getContext('2d'); +ctx.fillStyle = 'green'; +ctx.fillRect(10, 10, 100, 100); +</script></pre> + </dt> +</dl> + +<h2 dir="rtl" id="הערות">הערות</h2> + +<p dir="rtl">* מומלץ להזין תוכן בין התגיות על מנת שזה יופיע במידה והדפדפן אינו תומך ב-Canvas.<br> + * חובה להוסיף תג סגירה <canvas/>.<br> + </p> + +<h2 dir="rtl" id="ראה_גם">ראה גם</h2> + +<ul> + <li dir="rtl"><a href="https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/HTML-canvas-guide/Introduction/Introduction.html">הקדמה ל-Canvas באתר Apple</a></li> + <li dir="rtl"><a href="https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial">מדריך למשתמש ב-Canvas</a></li> + <li dir="rtl"><a href="https://simon.html5.org/dump/html5-canvas-cheat-sheet.html">ריכוז תגיות ותכונות של Canvas</a></li> +</ul> |