|
2793 | 2793 | },
|
2794 | 2794 | {
|
2795 | 2795 | "name": "popMatrix",
|
2796 |
| - "description": "Pops the current transformation matrix off the matrix stack. Understanding pushing and popping requires understanding the concept of a matrix stack. The ", |
| 2796 | + "description": "Pops the current transformation matrix off the matrix stack. Understanding pushing and popping requires understanding the concept of a matrix stack. The <code>pushMatrix()</code> function saves the current coordinate system to the stack and <code>popMatrix()</code> restores the prior coordinate system. <code>pushMatrix()</code> and <code>popMatrix()</code> are used in conjuction with the other transformation methods and may be embedded to control the scope of the transformations.", |
2797 | 2797 | "returns": null,
|
2798 | 2798 | "category": "Document",
|
2799 | 2799 | "subcategory": "Transformation",
|
|
2824 | 2824 | },
|
2825 | 2825 | {
|
2826 | 2826 | "name": "pushMatrix",
|
2827 |
| - "description": "Pushes the current transformation matrix onto the matrix stack. Understanding ", |
| 2827 | + "description": "Pushes the current transformation matrix onto the matrix stack. Understanding <code>pushMatrix()</code> and <code>popMatrix()</code> requires understanding the concept of a matrix stack. The <code>pushMatrix()</code> function saves the current coordinate system to the stack and <code>popMatrix()</code> restores the prior coordinate system. <code>pushMatrix()</code> and <code>popMatrix()</code> are used in conjuction with the other transformation methods and may be embedded to control the scope of the transformations.", |
2828 | 2828 | "returns": null,
|
2829 | 2829 | "category": "Document",
|
2830 | 2830 | "subcategory": "Transformation",
|
|
2855 | 2855 | },
|
2856 | 2856 | {
|
2857 | 2857 | "name": "rotate",
|
2858 |
| - "description": "Rotates an object the amount specified by the angle parameter. Angles should be specified in radians (values from 0 to ", |
| 2858 | + "description": "Rotates an object the amount specified by the angle parameter. Angles should be specified in radians (values from 0 to <code>PI</code>*2) or converted to radians with the <code>radians()</code> function. Objects are always rotated around their relative position to the origin and positive numbers rotate objects in a clockwise direction with 0 radians or degrees being up and <code>HALF_PI</code> being to the right etc. Transformations apply to everything that happens after and subsequent calls to the function accumulates the effect. For example, calling <code>rotate(PI/2)</code> and then <code>rotate(PI/2)</code> is the same as <code>rotate(PI)</code>. If <code>rotate()</code> is called within the <code>draw()</code>, the transformation is reset when the loop begins again. Technically, <code>rotate()</code> multiplies the current transformation matrix by a rotation matrix. This function can be further controlled by the <code>pushMatrix()</code> and <code>popMatrix()</code>.", |
2859 | 2859 | "returns": null,
|
2860 | 2860 | "category": "Document",
|
2861 | 2861 | "subcategory": "Transformation",
|
|
2882 | 2882 | },
|
2883 | 2883 | {
|
2884 | 2884 | "name": "scale",
|
2885 |
| - "description": "Increasing and decreasing the size of an object by expanding and contracting vertices. Scale values are specified as decimal percentages. The function call ", |
| 2885 | + "description": "Increasing and decreasing the size of an object by expanding and contracting vertices. Scale values are specified as decimal percentages. The function call <code>scale(2.0)</code> increases the dimension of a shape by 200%. Objects always scale from their relative origin to the coordinate system. Transformations apply to everything that happens after and subsequent calls to the function multiply the effect. For example, calling <code>scale(2.0)</code> and then <code>scale(1.5)</code> is the same as <code>scale(3.0)</code>. If <code>scale()</code> is called within <code>draw()</code>, the transformation is reset when the loop begins again. This function can be further controlled by <code>pushMatrix()</code> and <code>popMatrix()</code>.\nIf only one parameter is given, it is applied on X and Y axis.", |
2886 | 2886 | "returns": null,
|
2887 | 2887 | "category": "Document",
|
2888 | 2888 | "subcategory": "Transformation",
|
|
2917 | 2917 | },
|
2918 | 2918 | {
|
2919 | 2919 | "name": "translate",
|
2920 |
| - "description": "Specifies an amount to displace objects within the page. The x parameter specifies left/right translation, the y parameter specifies up/down translation. Transformations apply to everything that happens after and subsequent calls to the function accumulates the effect. For example, calling ", |
| 2920 | + "description": "Specifies an amount to displace objects within the page. The x parameter specifies left/right translation, the y parameter specifies up/down translation. Transformations apply to everything that happens after and subsequent calls to the function accumulates the effect. For example, calling <code>translate(50, 0)</code> and then <code>translate(20, 0)</code> is the same as <code>translate(70, 0)</code>. This function can be further controlled by the <code>pushMatrix()</code> and <code>popMatrix()</code>.", |
2921 | 2921 | "returns": null,
|
2922 | 2922 | "category": "Document",
|
2923 | 2923 | "subcategory": "Transformation",
|
|
7272 | 7272 | },
|
7273 | 7273 | {
|
7274 | 7274 | "name": "Array.filter",
|
7275 |
| - "description": "The ", |
| 7275 | + "description": "The <a href=\"https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter\">filter()</a> method creates a new array with all elements that pass the test implemented by the provided function.", |
7276 | 7276 | "returns": {
|
7277 | 7277 | "name": null,
|
7278 | 7278 | "description": "The new array with the elements that pass the test.",
|
|
7305 | 7305 | },
|
7306 | 7306 | {
|
7307 | 7307 | "name": "Array.map",
|
7308 |
| - "description": "The ", |
| 7308 | + "description": "The <a href=\"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/map\">map()</a> method creates a new array with the results of calling a provided function on every element in this array.", |
7309 | 7309 | "returns": {
|
7310 | 7310 | "name": null,
|
7311 | 7311 | "description": "The new array with each element being the result of the callback function.",
|
|
0 commit comments