@@ -1746,54 +1746,4 @@ if (typeof p5 !== 'undefined') {
1746
1746
* }
1747
1747
* </code>
1748
1748
* </div>
1749
- */
1750
-
1751
- /**
1752
- * @function getPointSize
1753
- * @experimental
1754
- * @description
1755
- * Registers a callback to modify the size of points when rendering with a shader.
1756
- *
1757
- * This hook can be used inside the following shader modify functions:
1758
- * - <a href="#/p5/baseMaterialShader">baseMaterialShader()</a>.modify()
1759
- * - <a href="#/p5/baseNormalShader">baseNormalShader()</a>.modify()
1760
- * - <a href="#/p5/baseColorShader">baseColorShader()</a>.modify()
1761
- * - <a href="#/p5/baseStrokeShader">baseStrokeShader()</a>.modify()
1762
- * - <a href="#/p5/baseFilterShader">baseFilterShader()</a>.modify()
1763
- *
1764
- * Use this hook when drawing points (for example, with the point() function in WEBGL mode).
1765
- * The callback receives the current point size (number) and should return the new size (number).
1766
- *
1767
- * This hook is available in:
1768
- * - <a href="#/p5/baseMaterialShader">baseMaterialShader()</a>
1769
- * - <a href="#/p5/baseNormalShader">baseNormalShader()</a>
1770
- * - <a href="#/p5/baseColorShader">baseColorShader()</a>
1771
- * - <a href="#/p5/baseStrokeShader">baseStrokeShader()</a>
1772
- * - <a href="#/p5/baseFilterShader">baseFilterShader()</a>
1773
- *
1774
- * @param {function } callback
1775
- * A callback function which receives and returns the point size.
1776
- *
1777
- * @example
1778
- * <div modernizr='webgl'>
1779
- * <code>
1780
- * let myShader;
1781
- * function setup() {
1782
- * createCanvas(200, 200, WEBGL);
1783
- * myShader = baseMaterialShader().modify(() => {
1784
- * getPointSize(size => {
1785
- * // Make points pulse in size over time
1786
- * return size * (1.0 + 0.5 * sin(millis() * 0.002));
1787
- * });
1788
- * });
1789
- * }
1790
- * function draw() {
1791
- * background(255);
1792
- * shader(myShader);
1793
- * strokeWeight(20);
1794
- * stroke('blue');
1795
- * point(0, 0);
1796
- * }
1797
- * </code>
1798
- * </div>
1799
- */
1749
+ */
0 commit comments