| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3348,12 +3348,9 @@ public void link(String url) { | |||
| 3348 | 3348 | ||
| 3349 | 3349 | ||
| 3350 | 3350 | /** | |
| 3351 | - * ( begin auto-generated from link.xml ) | ||
| 3352 | - * | ||
| 3353 | 3351 | * Links to a webpage either in the same window or in a new window. The | |
| 3354 | 3352 | * complete URL must be specified. | |
| 3355 | - * | ||
| 3356 | - * ( end auto-generated ) | ||
| 3353 | + * | ||
| 3357 | 3354 | * <h3>Advanced</h3> | |
| 3358 | 3355 | * Link to an external page without all the muss. | |
| 3359 | 3356 | * <p> | |
@@ -3365,7 +3362,6 @@ public void link(String url) { | |||
| 3365 | 3362 | * or whatever you want as your browser, since Linux doesn't | |
| 3366 | 3363 | * yet have a standard method for launching URLs. | |
| 3367 | 3364 | * | |
| 3368 | - * @webref input:web | ||
| 3369 | 3365 | * @param url the complete URL, as a String in quotes | |
| 3370 | 3366 | * @param target the name of the window in which to load the URL, as a String in quotes | |
| 3371 | 3367 | * @deprecated the 'target' parameter is no longer relevant with the removal of applets | |
@@ -5871,6 +5867,8 @@ private Frame selectFrame() { | |||
| 5871 | 5867 | * For advanced users, the method must be 'public', which is true for all | |
| 5872 | 5868 | * methods inside a sketch when run from the PDE, but must explicitly be | |
| 5873 | 5869 | * set when using Eclipse or other development environments. | |
| 5870 | + * | ||
| 5871 | + * @webref input:files | ||
| 5874 | 5872 | * @param prompt message to the user | |
| 5875 | 5873 | * @param callback name of the method to be called when the selection is made | |
| 5876 | 5874 | */ | |
@@ -5896,12 +5894,17 @@ static public void selectInput(String prompt, String callbackMethod, | |||
| 5896 | 5894 | } | |
| 5897 | 5895 | ||
| 5898 | 5896 | ||
| 5899 | - /** See selectInput() for details. */ | ||
| 5897 | + /** | ||
| 5898 | + * See selectInput() for details. | ||
| 5899 | + * | ||
| 5900 | + * @webref output:files | ||
| 5901 | + * @param prompt message to the user | ||
| 5902 | + * @param callback name of the method to be called when the selection is made | ||
| 5903 | + */ | ||
| 5900 | 5904 | public void selectOutput(String prompt, String callback) { | |
| 5901 | 5905 | selectOutput(prompt, callback, null); | |
| 5902 | 5906 | } | |
| 5903 | - | ||
| 5904 | - | ||
| 5907 | + | ||
| 5905 | 5908 | public void selectOutput(String prompt, String callback, File file) { | |
| 5906 | 5909 | selectOutput(prompt, callback, file, this); | |
| 5907 | 5910 | } | |
@@ -5965,7 +5968,13 @@ public void run() { | |||
| 5965 | 5968 | } | |
| 5966 | 5969 | ||
| 5967 | 5970 | ||
| 5968 | - /** See selectInput() for details. */ | ||
| 5971 | + /** | ||
| 5972 | + * See selectInput() for details. | ||
| 5973 | + * | ||
| 5974 | + * @webref input:files | ||
| 5975 | + * @param prompt message to the user | ||
| 5976 | + * @param callback name of the method to be called when the selection is made | ||
| 5977 | + */ | ||
| 5969 | 5978 | public void selectFolder(String prompt, String callback) { | |
| 5970 | 5979 | selectFolder(prompt, callback, null); | |
| 5971 | 5980 | } | |
@@ -10613,6 +10622,16 @@ public void noClip() { | |||
| 10613 | 10622 | } | |
| 10614 | 10623 | ||
| 10615 | 10624 | ||
| 10625 | + /** | ||
| 10626 | + * ( begin auto-generated from blendMode.xml ) | ||
| 10627 | + * | ||
| 10628 | + * This is a new reference entry for Processing 2.0. It will be updated shortly. | ||
| 10629 | + * | ||
| 10630 | + * ( end auto-generated ) | ||
| 10631 | + * | ||
| 10632 | + * @webref Rendering | ||
| 10633 | + * @param mode the blending mode to use | ||
| 10634 | + */ | ||
| 10616 | 10635 | public void blendMode(int mode) { | |
| 10617 | 10636 | if (recorder != null) recorder.blendMode(mode); | |
| 10618 | 10637 | g.blendMode(mode); | |
@@ -10644,34 +10663,72 @@ public PShape createShape(int kind, float... p) { | |||
| 10644 | 10663 | } | |
| 10645 | 10664 | ||
| 10646 | 10665 | ||
| 10666 | + /** | ||
| 10667 | + * ( begin auto-generated from loadShader.xml ) | ||
| 10668 | + * | ||
| 10669 | + * This is a new reference entry for Processing 2.0. It will be updated shortly. | ||
| 10670 | + * | ||
| 10671 | + * ( end auto-generated ) | ||
| 10672 | + * | ||
| 10673 | + * @webref rendering:shaders | ||
| 10674 | + * @param fragFilename name of fragment shader file | ||
| 10675 | + */ | ||
| 10647 | 10676 | public PShader loadShader(String fragFilename) { | |
| 10648 | 10677 | return g.loadShader(fragFilename); | |
| 10649 | 10678 | } | |
| 10650 | 10679 | ||
| 10651 | 10680 | ||
| 10681 | + /** | ||
| 10682 | + * @param vertFilename name of vertex shader file | ||
| 10683 | + */ | ||
| 10652 | 10684 | public PShader loadShader(String fragFilename, String vertFilename) { | |
| 10653 | 10685 | return g.loadShader(fragFilename, vertFilename); | |
| 10654 | 10686 | } | |
| 10655 | 10687 | ||
| 10656 | 10688 | ||
| 10689 | + /** | ||
| 10690 | + * ( begin auto-generated from shader.xml ) | ||
| 10691 | + * | ||
| 10692 | + * This is a new reference entry for Processing 2.0. It will be updated shortly. | ||
| 10693 | + * | ||
| 10694 | + * ( end auto-generated ) | ||
| 10695 | + * | ||
| 10696 | + * @webref rendering:shaders | ||
| 10697 | + * @param shader name of shader file | ||
| 10698 | + */ | ||
| 10657 | 10699 | public void shader(PShader shader) { | |
| 10658 | 10700 | if (recorder != null) recorder.shader(shader); | |
| 10659 | 10701 | g.shader(shader); | |
| 10660 | 10702 | } | |
| 10661 | 10703 | ||
| 10662 | 10704 | ||
| 10705 | + /** | ||
| 10706 | + * @param kind type of shader, either POINTS, LINES, or TRIANGLES | ||
| 10707 | + */ | ||
| 10663 | 10708 | public void shader(PShader shader, int kind) { | |
| 10664 | 10709 | if (recorder != null) recorder.shader(shader, kind); | |
| 10665 | 10710 | g.shader(shader, kind); | |
| 10666 | 10711 | } | |
| 10667 | 10712 | ||
| 10668 | 10713 | ||
| 10714 | + /** | ||
| 10715 | + * ( begin auto-generated from resetShader.xml ) | ||
| 10716 | + * | ||
| 10717 | + * This is a new reference entry for Processing 2.0. It will be updated shortly. | ||
| 10718 | + * | ||
| 10719 | + * ( end auto-generated ) | ||
| 10720 | + * | ||
| 10721 | + * @webref rendering:shaders | ||
| 10722 | + */ | ||
| 10669 | 10723 | public void resetShader() { | |
| 10670 | 10724 | if (recorder != null) recorder.resetShader(); | |
| 10671 | 10725 | g.resetShader(); | |
| 10672 | 10726 | } | |
| 10673 | 10727 | ||
| 10674 | 10728 | ||
| 10729 | + /** | ||
| 10730 | + * @param kind type of shader, either POINTS, LINES, or TRIANGLES | ||
| 10731 | + */ | ||
| 10675 | 10732 | public void resetShader(int kind) { | |
| 10676 | 10733 | if (recorder != null) recorder.resetShader(kind); | |
| 10677 | 10734 | g.resetShader(kind); | |
@@ -11541,9 +11598,9 @@ public void smooth() { | |||
| 11541 | 11598 | ||
| 11542 | 11599 | ||
| 11543 | 11600 | /** | |
| 11544 | - * | ||
| 11601 | + * | ||
| 11545 | 11602 | * @param level either 2, 4, or 8 | |
| 11546 | - */ | ||
| 11603 | + */ | ||
| 11547 | 11604 | public void smooth(int level) { | |
| 11548 | 11605 | if (recorder != null) recorder.smooth(level); | |
| 11549 | 11606 | g.smooth(level); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1590,7 +1590,16 @@ public void noClip() { | |||
| 1590 | 1590 | ||
| 1591 | 1591 | // BLEND | |
| 1592 | 1592 | ||
| 1593 | - | ||
| 1593 | + /** | ||
| 1594 | + * ( begin auto-generated from blendMode.xml ) | ||
| 1595 | + * | ||
| 1596 | + * This is a new reference entry for Processing 2.0. It will be updated shortly. | ||
| 1597 | + * | ||
| 1598 | + * ( end auto-generated ) | ||
| 1599 | + * | ||
| 1600 | + * @webref Rendering | ||
| 1601 | + * @param mode the blending mode to use | ||
| 1602 | + */ | ||
| 1594 | 1603 | public void blendMode(int mode) { | |
| 1595 | 1604 | showMissingWarning("blendMode"); | |
| 1596 | 1605 | } | |
@@ -1640,34 +1649,66 @@ public PShape createShape(int kind, float... p) { | |||
| 1640 | 1649 | ||
| 1641 | 1650 | // SHADERS | |
| 1642 | 1651 | ||
| 1643 | - | ||
| 1652 | + /** | ||
| 1653 | + * ( begin auto-generated from loadShader.xml ) | ||
| 1654 | + * | ||
| 1655 | + * This is a new reference entry for Processing 2.0. It will be updated shortly. | ||
| 1656 | + * | ||
| 1657 | + * ( end auto-generated ) | ||
| 1658 | + * | ||
| 1659 | + * @webref rendering:shaders | ||
| 1660 | + * @param fragFilename name of fragment shader file | ||
| 1661 | + */ | ||
| 1644 | 1662 | public PShader loadShader(String fragFilename) { | |
| 1645 | 1663 | showMissingWarning("loadShader"); | |
| 1646 | 1664 | return null; | |
| 1647 | 1665 | } | |
| 1648 | 1666 | ||
| 1649 | - | ||
| 1667 | + /** | ||
| 1668 | + * @param vertFilename name of vertex shader file | ||
| 1669 | + */ | ||
| 1650 | 1670 | public PShader loadShader(String fragFilename, String vertFilename) { | |
| 1651 | 1671 | showMissingWarning("loadShader"); | |
| 1652 | 1672 | return null; | |
| 1653 | 1673 | } | |
| 1654 | 1674 | ||
| 1655 | - | ||
| 1675 | + /** | ||
| 1676 | + * ( begin auto-generated from shader.xml ) | ||
| 1677 | + * | ||
| 1678 | + * This is a new reference entry for Processing 2.0. It will be updated shortly. | ||
| 1679 | + * | ||
| 1680 | + * ( end auto-generated ) | ||
| 1681 | + * | ||
| 1682 | + * @webref rendering:shaders | ||
| 1683 | + * @param shader name of shader file | ||
| 1684 | + */ | ||
| 1656 | 1685 | public void shader(PShader shader) { | |
| 1657 | 1686 | showMissingWarning("shader"); | |
| 1658 | 1687 | } | |
| 1659 | 1688 | ||
| 1660 | - | ||
| 1689 | + /** | ||
| 1690 | + * @param kind type of shader, either POINTS, LINES, or TRIANGLES | ||
| 1691 | + */ | ||
| 1661 | 1692 | public void shader(PShader shader, int kind) { | |
| 1662 | 1693 | showMissingWarning("shader"); | |
| 1663 | 1694 | } | |
| 1664 | 1695 | ||
| 1665 | - | ||
| 1696 | + /** | ||
| 1697 | + * ( begin auto-generated from resetShader.xml ) | ||
| 1698 | + * | ||
| 1699 | + * This is a new reference entry for Processing 2.0. It will be updated shortly. | ||
| 1700 | + * | ||
| 1701 | + * ( end auto-generated ) | ||
| 1702 | + * | ||
| 1703 | + * @webref rendering:shaders | ||
| 1704 | + */ | ||
| 1666 | 1705 | public void resetShader() { | |
| 1667 | 1706 | showMissingWarning("resetShader"); | |
| 1668 | 1707 | } | |
| 1669 | 1708 | ||
| 1670 | - | ||
| 1709 | + /** | ||
| 1710 | + * @param kind type of shader, either POINTS, LINES, or TRIANGLES | ||
| 1711 | + */ | ||
| 1671 | 1712 | public void resetShader(int kind) { | |
| 1672 | 1713 | showMissingWarning("resetShader"); | |
| 1673 | 1714 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,10 @@ | |||
| 1 | 1 | /** | |
| 2 | - * Deform | ||
| 2 | + * Deform. | ||
| 3 | + * | ||
| 3 | 4 | * A GLSL version of the oldschool 2D deformation effect, by Inigo Quilez. | |
| 4 | 5 | * Ported from the webGL version available in ShaderToy: | |
| 5 | 6 | * http://www.iquilezles.org/apps/shadertoy/ | |
| 6 | - * (look for Deform under the Plane Deformations Presets) | ||
| 7 | + * (Look for Deform under the Plane Deformations Presets) | ||
| 7 | 8 | * | |
| 8 | 9 | */ | |
| 9 | 10 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,13 +1,14 @@ | |||
| 1 | 1 | /** | |
| 2 | - * Monjori | ||
| 2 | + * Monjori. | ||
| 3 | + * | ||
| 3 | 4 | * GLSL version of the 1k intro Monjori from the demoscene | |
| 4 | 5 | * (http://www.pouet.net/prod.php?which=52761) | |
| 5 | 6 | * Ported from the webGL version available in ShaderToy: | |
| 6 | 7 | * http://www.iquilezles.org/apps/shadertoy/ | |
| 7 | - * (look for Monjori under the Plane Deformations Presets) | ||
| 8 | + * (Look for Monjori under the Plane Deformations Presets) | ||
| 8 | 9 | */ | |
| 9 | 10 | ||
| 10 | - PShader monjori; | ||
| 11 | + PShader monjori; | ||
| 11 | 12 | ||
| 12 | 13 | void setup() { | |
| 13 | 14 | size(640, 360, P2D); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,6 @@ | |||
| 1 | 1 | /** | |
| 2 | - * Nebula | ||
| 2 | + * Nebula. | ||
| 3 | + * | ||
| 3 | 4 | * From CoffeeBreakStudios.com (CBS) | |
| 4 | 5 | * Ported from the webGL version in GLSL Sandbox: | |
| 5 | 6 | * http://glsl.heroku.com/e#3265.2 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments