processing 1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/utils.rb +1 -1
- data/ChangeLog.md +14 -0
- data/Gemfile.lock +2 -4
- data/LICENSE +1 -1
- data/Rakefile +0 -1
- data/VERSION +1 -1
- data/lib/processing/context.rb +43 -43
- data/lib/processing/font.rb +2 -2
- data/lib/processing/graphics.rb +4 -3
- data/lib/processing/graphics_context.rb +125 -125
- data/lib/processing/image.rb +13 -13
- data/lib/processing/shader.rb +2 -2
- data/lib/processing/shape.rb +6 -6
- data/lib/processing/svg.rb +2 -2
- data/lib/processing/vector.rb +42 -42
- data/lib/processing/window.rb +15 -8
- data/lib/processing.rb +10 -8
- data/processing.gemspec +5 -5
- metadata +34 -10
| @@ -570,7 +570,7 @@ module Processing | |
| 570 570 | 
             
                # @return [Numeric] width
         | 
| 571 571 | 
             
                #
         | 
| 572 572 | 
             
                # @see https://processing.org/reference/width.html
         | 
| 573 | 
            -
                # @see https://p5js.org/reference | 
| 573 | 
            +
                # @see https://p5js.org/reference/p5/width/
         | 
| 574 574 | 
             
                #
         | 
| 575 575 | 
             
                def width()
         | 
| 576 576 | 
             
                  getInternal__.width
         | 
| @@ -581,7 +581,7 @@ module Processing | |
| 581 581 | 
             
                # @return [Numeric] height
         | 
| 582 582 | 
             
                #
         | 
| 583 583 | 
             
                # @see https://processing.org/reference/height.html
         | 
| 584 | 
            -
                # @see https://p5js.org/reference | 
| 584 | 
            +
                # @see https://p5js.org/reference/p5/height/
         | 
| 585 585 | 
             
                #
         | 
| 586 586 | 
             
                def height()
         | 
| 587 587 | 
             
                  getInternal__.height
         | 
| @@ -612,7 +612,7 @@ module Processing | |
| 612 612 | 
             
                # @return [Numeric] pixel density
         | 
| 613 613 | 
             
                #
         | 
| 614 614 | 
             
                # @see https://processing.org/reference/pixelDensity_.html
         | 
| 615 | 
            -
                # @see https://p5js.org/reference | 
| 615 | 
            +
                # @see https://p5js.org/reference/p5/pixelDensity/
         | 
| 616 616 | 
             
                #
         | 
| 617 617 | 
             
                def pixelDensity()
         | 
| 618 618 | 
             
                  @painter__.pixel_density
         | 
| @@ -649,7 +649,7 @@ module Processing | |
| 649 649 | 
             
                # @return [RGB, HSB] current mode
         | 
| 650 650 | 
             
                #
         | 
| 651 651 | 
             
                # @see https://processing.org/reference/colorMode_.html
         | 
| 652 | 
            -
                # @see https://p5js.org/reference | 
| 652 | 
            +
                # @see https://p5js.org/reference/p5/colorMode/
         | 
| 653 653 | 
             
                #
         | 
| 654 654 | 
             
                def colorMode(mode = nil, *maxes)
         | 
| 655 655 | 
             
                  if mode != nil
         | 
| @@ -683,7 +683,7 @@ module Processing | |
| 683 683 | 
             
                # @return [Integer] the rgba color value
         | 
| 684 684 | 
             
                #
         | 
| 685 685 | 
             
                # @see https://processing.org/reference/color_.html
         | 
| 686 | 
            -
                # @see https://p5js.org/reference | 
| 686 | 
            +
                # @see https://p5js.org/reference/p5/color/
         | 
| 687 687 | 
             
                #
         | 
| 688 688 | 
             
                def color(*args)
         | 
| 689 689 | 
             
                  toRGBA__(*args)
         | 
| @@ -707,7 +707,7 @@ module Processing | |
| 707 707 | 
             
                # @return [Numeric] the red value
         | 
| 708 708 | 
             
                #
         | 
| 709 709 | 
             
                # @see https://processing.org/reference/red_.html
         | 
| 710 | 
            -
                # @see https://p5js.org/reference | 
| 710 | 
            +
                # @see https://p5js.org/reference/p5/red/
         | 
| 711 711 | 
             
                #
         | 
| 712 712 | 
             
                def red(color)
         | 
| 713 713 | 
             
                  ((color >> 16) & 0xff) / 255.0 * @colorMaxes__[0]
         | 
| @@ -720,7 +720,7 @@ module Processing | |
| 720 720 | 
             
                # @return [Numeric] the green value
         | 
| 721 721 | 
             
                #
         | 
| 722 722 | 
             
                # @see https://processing.org/reference/green_.html
         | 
| 723 | 
            -
                # @see https://p5js.org/reference | 
| 723 | 
            +
                # @see https://p5js.org/reference/p5/green/
         | 
| 724 724 | 
             
                #
         | 
| 725 725 | 
             
                def green(color)
         | 
| 726 726 | 
             
                  ((color >> 8) & 0xff) / 255.0 * @colorMaxes__[1]
         | 
| @@ -733,7 +733,7 @@ module Processing | |
| 733 733 | 
             
                # @return [Numeric] the blue value
         | 
| 734 734 | 
             
                #
         | 
| 735 735 | 
             
                # @see https://processing.org/reference/blue_.html
         | 
| 736 | 
            -
                # @see https://p5js.org/reference | 
| 736 | 
            +
                # @see https://p5js.org/reference/p5/blue/
         | 
| 737 737 | 
             
                #
         | 
| 738 738 | 
             
                def blue(color)
         | 
| 739 739 | 
             
                  (color & 0xff) / 255.0 * @colorMaxes__[2]
         | 
| @@ -746,7 +746,7 @@ module Processing | |
| 746 746 | 
             
                # @return [Numeric] the red value
         | 
| 747 747 | 
             
                #
         | 
| 748 748 | 
             
                # @see https://processing.org/reference/alpha_.html
         | 
| 749 | 
            -
                # @see https://p5js.org/reference | 
| 749 | 
            +
                # @see https://p5js.org/reference/p5/alpha/
         | 
| 750 750 | 
             
                #
         | 
| 751 751 | 
             
                def alpha(color)
         | 
| 752 752 | 
             
                  ((color >> 24) & 0xff) / 255.0 * @colorMaxes__[3]
         | 
| @@ -759,7 +759,7 @@ module Processing | |
| 759 759 | 
             
                # @return [Numeric] the hue value
         | 
| 760 760 | 
             
                #
         | 
| 761 761 | 
             
                # @see https://processing.org/reference/hue_.html
         | 
| 762 | 
            -
                # @see https://p5js.org/reference | 
| 762 | 
            +
                # @see https://p5js.org/reference/p5/hue/
         | 
| 763 763 | 
             
                #
         | 
| 764 764 | 
             
                def hue(color)
         | 
| 765 765 | 
             
                  h, = color2raw__(color).to_hsv
         | 
| @@ -773,7 +773,7 @@ module Processing | |
| 773 773 | 
             
                # @return [Numeric] the saturation value
         | 
| 774 774 | 
             
                #
         | 
| 775 775 | 
             
                # @see https://processing.org/reference/saturation_.html
         | 
| 776 | 
            -
                # @see https://p5js.org/reference | 
| 776 | 
            +
                # @see https://p5js.org/reference/p5/saturation/
         | 
| 777 777 | 
             
                #
         | 
| 778 778 | 
             
                def saturation(color)
         | 
| 779 779 | 
             
                  _, s, = color2raw__(color).to_hsv
         | 
| @@ -787,7 +787,7 @@ module Processing | |
| 787 787 | 
             
                # @return [Numeric] the brightness value
         | 
| 788 788 | 
             
                #
         | 
| 789 789 | 
             
                # @see https://processing.org/reference/brightness_.html
         | 
| 790 | 
            -
                # @see https://p5js.org/reference | 
| 790 | 
            +
                # @see https://p5js.org/reference/p5/brightness/
         | 
| 791 791 | 
             
                #
         | 
| 792 792 | 
             
                def brightness(color)
         | 
| 793 793 | 
             
                  _, _, b = color2raw__(color).to_hsv
         | 
| @@ -839,7 +839,7 @@ module Processing | |
| 839 839 | 
             
                #
         | 
| 840 840 | 
             
                # @return [RADIANS, DEGREES] current mode
         | 
| 841 841 | 
             
                #
         | 
| 842 | 
            -
                # @see https://p5js.org/reference | 
| 842 | 
            +
                # @see https://p5js.org/reference/p5/angleMode/
         | 
| 843 843 | 
             
                #
         | 
| 844 844 | 
             
                def angleMode(mode = nil)
         | 
| 845 845 | 
             
                  if mode != nil
         | 
| @@ -886,7 +886,7 @@ module Processing | |
| 886 886 | 
             
                # @return [nil] nil
         | 
| 887 887 | 
             
                #
         | 
| 888 888 | 
             
                # @see https://processing.org/reference/rectMode_.html
         | 
| 889 | 
            -
                # @see https://p5js.org/reference | 
| 889 | 
            +
                # @see https://p5js.org/reference/p5/rectMode/
         | 
| 890 890 | 
             
                #
         | 
| 891 891 | 
             
                def rectMode(mode)
         | 
| 892 892 | 
             
                  @rectMode__ = mode
         | 
| @@ -904,7 +904,7 @@ module Processing | |
| 904 904 | 
             
                # @return [nil] nil
         | 
| 905 905 | 
             
                #
         | 
| 906 906 | 
             
                # @see https://processing.org/reference/ellipseMode_.html
         | 
| 907 | 
            -
                # @see https://p5js.org/reference | 
| 907 | 
            +
                # @see https://p5js.org/reference/p5/ellipseMode/
         | 
| 908 908 | 
             
                #
         | 
| 909 909 | 
             
                def ellipseMode(mode)
         | 
| 910 910 | 
             
                  @ellipseMode__ = mode
         | 
| @@ -921,7 +921,7 @@ module Processing | |
| 921 921 | 
             
                # @return [nil] nil
         | 
| 922 922 | 
             
                #
         | 
| 923 923 | 
             
                # @see https://processing.org/reference/imageMode_.html
         | 
| 924 | 
            -
                # @see https://p5js.org/reference | 
| 924 | 
            +
                # @see https://p5js.org/reference/p5/imageMode/
         | 
| 925 925 | 
             
                #
         | 
| 926 926 | 
             
                def imageMode(mode)
         | 
| 927 927 | 
             
                  @imageMode__ = mode
         | 
| @@ -961,7 +961,7 @@ module Processing | |
| 961 961 | 
             
                # @return [nil] nil
         | 
| 962 962 | 
             
                #
         | 
| 963 963 | 
             
                # @see https://processing.org/reference/blendMode_.html
         | 
| 964 | 
            -
                # @see https://p5js.org/reference | 
| 964 | 
            +
                # @see https://p5js.org/reference/p5/blendMode/
         | 
| 965 965 | 
             
                #
         | 
| 966 966 | 
             
                def blendMode(mode = nil)
         | 
| 967 967 | 
             
                  if mode != nil
         | 
| @@ -990,7 +990,7 @@ module Processing | |
| 990 990 | 
             
                # @return [nil] nil
         | 
| 991 991 | 
             
                #
         | 
| 992 992 | 
             
                # @see https://processing.org/reference/fill_.html
         | 
| 993 | 
            -
                # @see https://p5js.org/reference | 
| 993 | 
            +
                # @see https://p5js.org/reference/p5/fill/
         | 
| 994 994 | 
             
                #
         | 
| 995 995 | 
             
                def fill(*args)
         | 
| 996 996 | 
             
                  @painter__.fill(*toRGBA__(*args))
         | 
| @@ -1002,7 +1002,7 @@ module Processing | |
| 1002 1002 | 
             
                # @return [nil] nil
         | 
| 1003 1003 | 
             
                #
         | 
| 1004 1004 | 
             
                # @see https://processing.org/reference/noFill_.html
         | 
| 1005 | 
            -
                # @see https://p5js.org/reference | 
| 1005 | 
            +
                # @see https://p5js.org/reference/p5/noFill/
         | 
| 1006 1006 | 
             
                #
         | 
| 1007 1007 | 
             
                def noFill()
         | 
| 1008 1008 | 
             
                  @painter__.fill nil
         | 
| @@ -1028,7 +1028,7 @@ module Processing | |
| 1028 1028 | 
             
                # @return [nil] nil
         | 
| 1029 1029 | 
             
                #
         | 
| 1030 1030 | 
             
                # @see https://processing.org/reference/stroke_.html
         | 
| 1031 | 
            -
                # @see https://p5js.org/reference | 
| 1031 | 
            +
                # @see https://p5js.org/reference/p5/stroke/
         | 
| 1032 1032 | 
             
                #
         | 
| 1033 1033 | 
             
                def stroke(*args)
         | 
| 1034 1034 | 
             
                  @painter__.stroke(*toRGBA__(*args))
         | 
| @@ -1040,7 +1040,7 @@ module Processing | |
| 1040 1040 | 
             
                # @return [nil] nil
         | 
| 1041 1041 | 
             
                #
         | 
| 1042 1042 | 
             
                # @see https://processing.org/reference/noStroke_.html
         | 
| 1043 | 
            -
                # @see https://p5js.org/reference | 
| 1043 | 
            +
                # @see https://p5js.org/reference/p5/noStroke/
         | 
| 1044 1044 | 
             
                #
         | 
| 1045 1045 | 
             
                def noStroke()
         | 
| 1046 1046 | 
             
                  @painter__.stroke nil
         | 
| @@ -1054,7 +1054,7 @@ module Processing | |
| 1054 1054 | 
             
                # @return [nil] nil
         | 
| 1055 1055 | 
             
                #
         | 
| 1056 1056 | 
             
                # @see https://processing.org/reference/strokeWeight_.html
         | 
| 1057 | 
            -
                # @see https://p5js.org/reference | 
| 1057 | 
            +
                # @see https://p5js.org/reference/p5/strokeWeight/
         | 
| 1058 1058 | 
             
                #
         | 
| 1059 1059 | 
             
                def strokeWeight(weight)
         | 
| 1060 1060 | 
             
                  @painter__.stroke_width weight
         | 
| @@ -1069,7 +1069,7 @@ module Processing | |
| 1069 1069 | 
             
                # @return [nil] nil
         | 
| 1070 1070 | 
             
                #
         | 
| 1071 1071 | 
             
                # @see https://processing.org/reference/strokeCap_.html
         | 
| 1072 | 
            -
                # @see https://p5js.org/reference | 
| 1072 | 
            +
                # @see https://p5js.org/reference/p5/strokeCap/
         | 
| 1073 1073 | 
             
                #
         | 
| 1074 1074 | 
             
                def strokeCap(cap)
         | 
| 1075 1075 | 
             
                  @painter__.stroke_cap cap
         | 
| @@ -1084,7 +1084,7 @@ module Processing | |
| 1084 1084 | 
             
                # @return [nil] nil
         | 
| 1085 1085 | 
             
                #
         | 
| 1086 1086 | 
             
                # @see https://processing.org/reference/strokeJoin_.html
         | 
| 1087 | 
            -
                # @see https://p5js.org/reference | 
| 1087 | 
            +
                # @see https://p5js.org/reference/p5/strokeJoin/
         | 
| 1088 1088 | 
             
                #
         | 
| 1089 1089 | 
             
                def strokeJoin(join)
         | 
| 1090 1090 | 
             
                  @painter__.stroke_join join
         | 
| @@ -1099,7 +1099,7 @@ module Processing | |
| 1099 1099 | 
             
                # @return [nil] nil
         | 
| 1100 1100 | 
             
                #
         | 
| 1101 1101 | 
             
                # @see https://processing.org/reference/curveDetail_.html
         | 
| 1102 | 
            -
                # @see https://p5js.org/reference | 
| 1102 | 
            +
                # @see https://p5js.org/reference/p5/curveDetail/
         | 
| 1103 1103 | 
             
                #
         | 
| 1104 1104 | 
             
                def curveDetail(detail)
         | 
| 1105 1105 | 
             
                  detail = 3 if detail < 3
         | 
| @@ -1114,7 +1114,7 @@ module Processing | |
| 1114 1114 | 
             
                # @return [nil] nil
         | 
| 1115 1115 | 
             
                #
         | 
| 1116 1116 | 
             
                # @see https://processing.org/reference/curveTightness_.html
         | 
| 1117 | 
            -
                # @see https://p5js.org/reference | 
| 1117 | 
            +
                # @see https://p5js.org/reference/p5/curveTightness/
         | 
| 1118 1118 | 
             
                #
         | 
| 1119 1119 | 
             
                def curveTightness(tightness)
         | 
| 1120 1120 | 
             
                  @curveTightness__ = tightness
         | 
| @@ -1129,7 +1129,7 @@ module Processing | |
| 1129 1129 | 
             
                # @return [nil] nil
         | 
| 1130 1130 | 
             
                #
         | 
| 1131 1131 | 
             
                # @see https://processing.org/reference/bezierDetail_.html
         | 
| 1132 | 
            -
                # @see https://p5js.org/reference | 
| 1132 | 
            +
                # @see https://p5js.org/reference/p5/bezierDetail/
         | 
| 1133 1133 | 
             
                #
         | 
| 1134 1134 | 
             
                def bezierDetail(detail)
         | 
| 1135 1135 | 
             
                  detail = 1 if detail < 1
         | 
| @@ -1156,7 +1156,7 @@ module Processing | |
| 1156 1156 | 
             
                # @return [nil] nil
         | 
| 1157 1157 | 
             
                #
         | 
| 1158 1158 | 
             
                # @see https://processing.org/reference/tint_.html
         | 
| 1159 | 
            -
                # @see https://p5js.org/reference | 
| 1159 | 
            +
                # @see https://p5js.org/reference/p5/tint/
         | 
| 1160 1160 | 
             
                #
         | 
| 1161 1161 | 
             
                def tint(*args)
         | 
| 1162 1162 | 
             
                  @tint__ = args
         | 
| @@ -1168,7 +1168,7 @@ module Processing | |
| 1168 1168 | 
             
                # @return [nil] nil
         | 
| 1169 1169 | 
             
                #
         | 
| 1170 1170 | 
             
                # @see https://processing.org/reference/noTint_.html
         | 
| 1171 | 
            -
                # @see https://p5js.org/reference | 
| 1171 | 
            +
                # @see https://p5js.org/reference/p5/noTint/
         | 
| 1172 1172 | 
             
                #
         | 
| 1173 1173 | 
             
                def noTint()
         | 
| 1174 1174 | 
             
                  @tint__ = nil
         | 
| @@ -1191,7 +1191,7 @@ module Processing | |
| 1191 1191 | 
             
                # @return [nil] nil
         | 
| 1192 1192 | 
             
                #
         | 
| 1193 1193 | 
             
                # @see https://processing.org/reference/clip_.html
         | 
| 1194 | 
            -
                # @see https://p5js.org/reference | 
| 1194 | 
            +
                # @see https://p5js.org/reference/p5/clip/
         | 
| 1195 1195 | 
             
                #
         | 
| 1196 1196 | 
             
                def clip(a, b, c, d)
         | 
| 1197 1197 | 
             
                  x, y, w, h = toXYWH__ @imageMode__, a, b, c, d
         | 
| @@ -1226,7 +1226,7 @@ module Processing | |
| 1226 1226 | 
             
                # @return [Font] current font
         | 
| 1227 1227 | 
             
                #
         | 
| 1228 1228 | 
             
                # @see https://processing.org/reference/textFont_.html
         | 
| 1229 | 
            -
                # @see https://p5js.org/reference | 
| 1229 | 
            +
                # @see https://p5js.org/reference/p5/textFont/
         | 
| 1230 1230 | 
             
                #
         | 
| 1231 1231 | 
             
                def textFont(font = nil, size = nil)
         | 
| 1232 1232 | 
             
                  if font != nil || size != nil
         | 
| @@ -1249,7 +1249,7 @@ module Processing | |
| 1249 1249 | 
             
                # @return [nil] nil
         | 
| 1250 1250 | 
             
                #
         | 
| 1251 1251 | 
             
                # @see https://processing.org/reference/textSize_.html
         | 
| 1252 | 
            -
                # @see https://p5js.org/reference | 
| 1252 | 
            +
                # @see https://p5js.org/reference/p5/textSize/
         | 
| 1253 1253 | 
             
                #
         | 
| 1254 1254 | 
             
                def textSize(size)
         | 
| 1255 1255 | 
             
                  textFont @textFont__, size
         | 
| @@ -1263,7 +1263,7 @@ module Processing | |
| 1263 1263 | 
             
                # @return [Numeric] width of the text
         | 
| 1264 1264 | 
             
                #
         | 
| 1265 1265 | 
             
                # @see https://processing.org/reference/textWidth_.html
         | 
| 1266 | 
            -
                # @see https://p5js.org/reference | 
| 1266 | 
            +
                # @see https://p5js.org/reference/p5/textWidth/
         | 
| 1267 1267 | 
             
                #
         | 
| 1268 1268 | 
             
                def textWidth(str)
         | 
| 1269 1269 | 
             
                  @painter__.font.width str
         | 
| @@ -1274,7 +1274,7 @@ module Processing | |
| 1274 1274 | 
             
                # @return [Numeric] ascent
         | 
| 1275 1275 | 
             
                #
         | 
| 1276 1276 | 
             
                # @see https://processing.org/reference/textAscent_.html
         | 
| 1277 | 
            -
                # @see https://p5js.org/reference | 
| 1277 | 
            +
                # @see https://p5js.org/reference/p5/textAscent/
         | 
| 1278 1278 | 
             
                #
         | 
| 1279 1279 | 
             
                def textAscent()
         | 
| 1280 1280 | 
             
                  @painter__.font.ascent
         | 
| @@ -1285,7 +1285,7 @@ module Processing | |
| 1285 1285 | 
             
                # @return [Numeric] descent
         | 
| 1286 1286 | 
             
                #
         | 
| 1287 1287 | 
             
                # @see https://processing.org/reference/textDescent_.html
         | 
| 1288 | 
            -
                # @see https://p5js.org/reference | 
| 1288 | 
            +
                # @see https://p5js.org/reference/p5/textDescent/
         | 
| 1289 1289 | 
             
                #
         | 
| 1290 1290 | 
             
                def textDescent()
         | 
| 1291 1291 | 
             
                  @painter__.font.descent
         | 
| @@ -1299,7 +1299,7 @@ module Processing | |
| 1299 1299 | 
             
                # @return [nil] nil
         | 
| 1300 1300 | 
             
                #
         | 
| 1301 1301 | 
             
                # @see https://processing.org/reference/textAlign_.html
         | 
| 1302 | 
            -
                # @see https://p5js.org/reference | 
| 1302 | 
            +
                # @see https://p5js.org/reference/p5/textAlign/
         | 
| 1303 1303 | 
             
                #
         | 
| 1304 1304 | 
             
                def textAlign(horizontal, vertical = BASELINE)
         | 
| 1305 1305 | 
             
                  @textAlignH__ = horizontal
         | 
| @@ -1317,7 +1317,7 @@ module Processing | |
| 1317 1317 | 
             
                # @return [Numeric] current spacing
         | 
| 1318 1318 | 
             
                #
         | 
| 1319 1319 | 
             
                # @see https://processing.org/reference/textLeading_.html
         | 
| 1320 | 
            -
                # @see https://p5js.org/reference | 
| 1320 | 
            +
                # @see https://p5js.org/reference/p5/textLeading/
         | 
| 1321 1321 | 
             
                #
         | 
| 1322 1322 | 
             
                def textLeading(leading = nil)
         | 
| 1323 1323 | 
             
                  @painter__.line_height = leading if leading
         | 
| @@ -1331,7 +1331,7 @@ module Processing | |
| 1331 1331 | 
             
                # @return [nil] nil
         | 
| 1332 1332 | 
             
                #
         | 
| 1333 1333 | 
             
                # @see https://processing.org/reference/texture_.html
         | 
| 1334 | 
            -
                # @see https://p5js.org/reference | 
| 1334 | 
            +
                # @see https://p5js.org/reference/p5/texture/
         | 
| 1335 1335 | 
             
                #
         | 
| 1336 1336 | 
             
                def texture(image)
         | 
| 1337 1337 | 
             
                  @painter__.texture image&.getInternal__
         | 
| @@ -1354,7 +1354,7 @@ module Processing | |
| 1354 1354 | 
             
                # @return [nil] nil
         | 
| 1355 1355 | 
             
                #
         | 
| 1356 1356 | 
             
                # @see https://processing.org/reference/textureMode_.html
         | 
| 1357 | 
            -
                # @see https://p5js.org/reference | 
| 1357 | 
            +
                # @see https://p5js.org/reference/p5/textureMode/
         | 
| 1358 1358 | 
             
                #
         | 
| 1359 1359 | 
             
                def textureMode(mode)
         | 
| 1360 1360 | 
             
                  @painter__.texcoord_mode = mode
         | 
| @@ -1368,7 +1368,7 @@ module Processing | |
| 1368 1368 | 
             
                # @return [nil] nil
         | 
| 1369 1369 | 
             
                #
         | 
| 1370 1370 | 
             
                # @see https://processing.org/reference/textureWrap_.html
         | 
| 1371 | 
            -
                # @see https://p5js.org/reference | 
| 1371 | 
            +
                # @see https://p5js.org/reference/p5/textureWrap/
         | 
| 1372 1372 | 
             
                #
         | 
| 1373 1373 | 
             
                def textureWrap(wrap)
         | 
| 1374 1374 | 
             
                  @painter__.texcoord_wrap = wrap
         | 
| @@ -1382,7 +1382,7 @@ module Processing | |
| 1382 1382 | 
             
                # @return [nil] nil
         | 
| 1383 1383 | 
             
                #
         | 
| 1384 1384 | 
             
                # @see https://processing.org/reference/shader_.html
         | 
| 1385 | 
            -
                # @see https://p5js.org/reference | 
| 1385 | 
            +
                # @see https://p5js.org/reference/p5/shader/
         | 
| 1386 1386 | 
             
                #
         | 
| 1387 1387 | 
             
                def shader(shader)
         | 
| 1388 1388 | 
             
                  @painter__.shader shader&.getInternal__
         | 
| @@ -1394,7 +1394,7 @@ module Processing | |
| 1394 1394 | 
             
                # @return [nil] nil
         | 
| 1395 1395 | 
             
                #
         | 
| 1396 1396 | 
             
                # @see https://processing.org/reference/resetShader_.html
         | 
| 1397 | 
            -
                # @see https://p5js.org/reference | 
| 1397 | 
            +
                # @see https://p5js.org/reference/p5/resetShader/
         | 
| 1398 1398 | 
             
                #
         | 
| 1399 1399 | 
             
                def resetShader()
         | 
| 1400 1400 | 
             
                  @painter__.no_shader
         | 
| @@ -1414,7 +1414,7 @@ module Processing | |
| 1414 1414 | 
             
                # @return [nil] nil
         | 
| 1415 1415 | 
             
                #
         | 
| 1416 1416 | 
             
                # @see https://processing.org/reference/filter_.html
         | 
| 1417 | 
            -
                # @see https://p5js.org/reference | 
| 1417 | 
            +
                # @see https://p5js.org/reference/p5/filter/
         | 
| 1418 1418 | 
             
                #
         | 
| 1419 1419 | 
             
                def filter(*args)
         | 
| 1420 1420 | 
             
                  @filter__ = Shader.createFilter__(*args)
         | 
| @@ -1440,7 +1440,7 @@ module Processing | |
| 1440 1440 | 
             
                # @return [nil] nil
         | 
| 1441 1441 | 
             
                #
         | 
| 1442 1442 | 
             
                # @see https://processing.org/reference/background_.html
         | 
| 1443 | 
            -
                # @see https://p5js.org/reference | 
| 1443 | 
            +
                # @see https://p5js.org/reference/p5/background/
         | 
| 1444 1444 | 
             
                #
         | 
| 1445 1445 | 
             
                def background(*args)
         | 
| 1446 1446 | 
             
                  assertDrawing__
         | 
| @@ -1469,7 +1469,7 @@ module Processing | |
| 1469 1469 | 
             
                # @return [nil] nil
         | 
| 1470 1470 | 
             
                #
         | 
| 1471 1471 | 
             
                # @see https://processing.org/reference/point_.html
         | 
| 1472 | 
            -
                # @see https://p5js.org/reference | 
| 1472 | 
            +
                # @see https://p5js.org/reference/p5/point/
         | 
| 1473 1473 | 
             
                #
         | 
| 1474 1474 | 
             
                def point(x, y)
         | 
| 1475 1475 | 
             
                  assertDrawing__
         | 
| @@ -1489,7 +1489,7 @@ module Processing | |
| 1489 1489 | 
             
                # @return [nil] nil
         | 
| 1490 1490 | 
             
                #
         | 
| 1491 1491 | 
             
                # @see https://processing.org/reference/line_.html
         | 
| 1492 | 
            -
                # @see https://p5js.org/reference | 
| 1492 | 
            +
                # @see https://p5js.org/reference/p5/line/
         | 
| 1493 1493 | 
             
                #
         | 
| 1494 1494 | 
             
                def line(x1, y1, x2, y2)
         | 
| 1495 1495 | 
             
                  assertDrawing__
         | 
| @@ -1520,7 +1520,7 @@ module Processing | |
| 1520 1520 | 
             
                # @return [nil] nil
         | 
| 1521 1521 | 
             
                #
         | 
| 1522 1522 | 
             
                # @see https://processing.org/reference/rect_.html
         | 
| 1523 | 
            -
                # @see https://p5js.org/reference | 
| 1523 | 
            +
                # @see https://p5js.org/reference/p5/rect/
         | 
| 1524 1524 | 
             
                #
         | 
| 1525 1525 | 
             
                def rect(a, b, c, d, *args)
         | 
| 1526 1526 | 
             
                  assertDrawing__
         | 
| @@ -1548,7 +1548,7 @@ module Processing | |
| 1548 1548 | 
             
                # @return [nil] nil
         | 
| 1549 1549 | 
             
                #
         | 
| 1550 1550 | 
             
                # @see https://processing.org/reference/ellipse_.html
         | 
| 1551 | 
            -
                # @see https://p5js.org/reference | 
| 1551 | 
            +
                # @see https://p5js.org/reference/p5/ellipse/
         | 
| 1552 1552 | 
             
                #
         | 
| 1553 1553 | 
             
                def ellipse(a, b, c, d)
         | 
| 1554 1554 | 
             
                  assertDrawing__
         | 
| @@ -1568,7 +1568,7 @@ module Processing | |
| 1568 1568 | 
             
                # @return [nil] nil
         | 
| 1569 1569 | 
             
                #
         | 
| 1570 1570 | 
             
                # @see https://processing.org/reference/circle_.html
         | 
| 1571 | 
            -
                # @see https://p5js.org/reference | 
| 1571 | 
            +
                # @see https://p5js.org/reference/p5/circle/
         | 
| 1572 1572 | 
             
                #
         | 
| 1573 1573 | 
             
                def circle(x, y, extent)
         | 
| 1574 1574 | 
             
                  ellipse x, y, extent, extent
         | 
| @@ -1590,7 +1590,7 @@ module Processing | |
| 1590 1590 | 
             
                # @return [nil] nil
         | 
| 1591 1591 | 
             
                #
         | 
| 1592 1592 | 
             
                # @see https://processing.org/reference/arc_.html
         | 
| 1593 | 
            -
                # @see https://p5js.org/reference | 
| 1593 | 
            +
                # @see https://p5js.org/reference/p5/arc/
         | 
| 1594 1594 | 
             
                #
         | 
| 1595 1595 | 
             
                def arc(a, b, c, d, start, stop)
         | 
| 1596 1596 | 
             
                  assertDrawing__
         | 
| @@ -1611,7 +1611,7 @@ module Processing | |
| 1611 1611 | 
             
                # @return [nil] nil
         | 
| 1612 1612 | 
             
                #
         | 
| 1613 1613 | 
             
                # @see https://processing.org/reference/square_.html
         | 
| 1614 | 
            -
                # @see https://p5js.org/reference | 
| 1614 | 
            +
                # @see https://p5js.org/reference/p5/square/
         | 
| 1615 1615 | 
             
                #
         | 
| 1616 1616 | 
             
                def square(x, y, extent)
         | 
| 1617 1617 | 
             
                  rect x, y, extent, extent
         | 
| @@ -1631,7 +1631,7 @@ module Processing | |
| 1631 1631 | 
             
                # @return [nil] nil
         | 
| 1632 1632 | 
             
                #
         | 
| 1633 1633 | 
             
                # @see https://processing.org/reference/triangle_.html
         | 
| 1634 | 
            -
                # @see https://p5js.org/reference | 
| 1634 | 
            +
                # @see https://p5js.org/reference/p5/triangle/
         | 
| 1635 1635 | 
             
                #
         | 
| 1636 1636 | 
             
                def triangle(x1, y1, x2, y2, x3, y3)
         | 
| 1637 1637 | 
             
                  assertDrawing__
         | 
| @@ -1655,7 +1655,7 @@ module Processing | |
| 1655 1655 | 
             
                # @return [nil] nil
         | 
| 1656 1656 | 
             
                #
         | 
| 1657 1657 | 
             
                # @see https://processing.org/reference/quad_.html
         | 
| 1658 | 
            -
                # @see https://p5js.org/reference | 
| 1658 | 
            +
                # @see https://p5js.org/reference/p5/quad/
         | 
| 1659 1659 | 
             
                #
         | 
| 1660 1660 | 
             
                def quad(x1, y1, x2, y2, x3, y3, x4, y4)
         | 
| 1661 1661 | 
             
                  assertDrawing__
         | 
| @@ -1679,7 +1679,7 @@ module Processing | |
| 1679 1679 | 
             
                # @return [nil] nil
         | 
| 1680 1680 | 
             
                #
         | 
| 1681 1681 | 
             
                # @see https://processing.org/reference/curve_.html
         | 
| 1682 | 
            -
                # @see https://p5js.org/reference | 
| 1682 | 
            +
                # @see https://p5js.org/reference/p5/curve/
         | 
| 1683 1683 | 
             
                #
         | 
| 1684 1684 | 
             
                def curve(cx1, cy1, x1, y1, x2, y2, cx2, cy2)
         | 
| 1685 1685 | 
             
                  assertDrawing__
         | 
| @@ -1705,7 +1705,7 @@ module Processing | |
| 1705 1705 | 
             
                # @return [nil] nil
         | 
| 1706 1706 | 
             
                #
         | 
| 1707 1707 | 
             
                # @see https://processing.org/reference/bezier_.html
         | 
| 1708 | 
            -
                # @see https://p5js.org/reference | 
| 1708 | 
            +
                # @see https://p5js.org/reference/p5/bezier/
         | 
| 1709 1709 | 
             
                #
         | 
| 1710 1710 | 
             
                def bezier(x1, y1, cx1, cy1, cx2, cy2, x2, y2)
         | 
| 1711 1711 | 
             
                  assertDrawing__
         | 
| @@ -1736,7 +1736,7 @@ module Processing | |
| 1736 1736 | 
             
                # @return [nil] nil
         | 
| 1737 1737 | 
             
                #
         | 
| 1738 1738 | 
             
                # @see https://processing.org/reference/text_.html
         | 
| 1739 | 
            -
                # @see https://p5js.org/reference | 
| 1739 | 
            +
                # @see https://p5js.org/reference/p5/text/
         | 
| 1740 1740 | 
             
                #
         | 
| 1741 1741 | 
             
                def text(str, x, y, x2 = nil, y2 = nil)
         | 
| 1742 1742 | 
             
                  assertDrawing__
         | 
| @@ -1777,7 +1777,7 @@ module Processing | |
| 1777 1777 | 
             
                # @return [nil] nil
         | 
| 1778 1778 | 
             
                #
         | 
| 1779 1779 | 
             
                # @see https://processing.org/reference/image_.html
         | 
| 1780 | 
            -
                # @see https://p5js.org/reference | 
| 1780 | 
            +
                # @see https://p5js.org/reference/p5/image/
         | 
| 1781 1781 | 
             
                #
         | 
| 1782 1782 | 
             
                def image(img, a, b, c = nil, d = nil)
         | 
| 1783 1783 | 
             
                  assertDrawing__
         | 
| @@ -1890,7 +1890,7 @@ module Processing | |
| 1890 1890 | 
             
                #  endShape CLOSE
         | 
| 1891 1891 | 
             
                #
         | 
| 1892 1892 | 
             
                # @see https://processing.org/reference/beginContour_.html
         | 
| 1893 | 
            -
                # @see https://p5js.org/reference | 
| 1893 | 
            +
                # @see https://p5js.org/reference/p5/beginContour/
         | 
| 1894 1894 | 
             
                #
         | 
| 1895 1895 | 
             
                def beginContour()
         | 
| 1896 1896 | 
             
                  (@drawingShape__ or raise "beginContour() must be called after beginShape()")
         | 
| @@ -1902,7 +1902,7 @@ module Processing | |
| 1902 1902 | 
             
                # @return [nil] nil
         | 
| 1903 1903 | 
             
                #
         | 
| 1904 1904 | 
             
                # @see https://processing.org/reference/endContour_.html
         | 
| 1905 | 
            -
                # @see https://p5js.org/reference | 
| 1905 | 
            +
                # @see https://p5js.org/reference/p5/endContour/
         | 
| 1906 1906 | 
             
                #
         | 
| 1907 1907 | 
             
                def endContour()
         | 
| 1908 1908 | 
             
                  (@drawingShape__ or raise "endContour() must be called after beginShape()")
         | 
| @@ -1922,7 +1922,7 @@ module Processing | |
| 1922 1922 | 
             
                # @return [nil] nil
         | 
| 1923 1923 | 
             
                #
         | 
| 1924 1924 | 
             
                # @see https://processing.org/reference/vertex_.html
         | 
| 1925 | 
            -
                # @see https://p5js.org/reference | 
| 1925 | 
            +
                # @see https://p5js.org/reference/p5/vertex/
         | 
| 1926 1926 | 
             
                #
         | 
| 1927 1927 | 
             
                def vertex(x, y, u = nil, v = nil)
         | 
| 1928 1928 | 
             
                  (@drawingShape__ or raise "vertex() must be called after beginShape()")
         | 
| @@ -1937,7 +1937,7 @@ module Processing | |
| 1937 1937 | 
             
                # @return [nil] nil
         | 
| 1938 1938 | 
             
                #
         | 
| 1939 1939 | 
             
                # @see https://processing.org/reference/curveVertex_.html
         | 
| 1940 | 
            -
                # @see https://p5js.org/reference | 
| 1940 | 
            +
                # @see https://p5js.org/reference/p5/curveVertex/
         | 
| 1941 1941 | 
             
                #
         | 
| 1942 1942 | 
             
                def curveVertex(x, y)
         | 
| 1943 1943 | 
             
                  (@drawingShape__ or raise "curveVertex() must be called after beginShape()")
         | 
| @@ -1952,7 +1952,7 @@ module Processing | |
| 1952 1952 | 
             
                # @return [nil] nil
         | 
| 1953 1953 | 
             
                #
         | 
| 1954 1954 | 
             
                # @see https://processing.org/reference/bezierVertex_.html
         | 
| 1955 | 
            -
                # @see https://p5js.org/reference | 
| 1955 | 
            +
                # @see https://p5js.org/reference/p5/bezierVertex/
         | 
| 1956 1956 | 
             
                #
         | 
| 1957 1957 | 
             
                def bezierVertex(x2, y2, x3, y3, x4, y4)
         | 
| 1958 1958 | 
             
                  (@drawingShape__ or raise "bezierVertex() must be called after beginShape()")
         | 
| @@ -1967,7 +1967,7 @@ module Processing | |
| 1967 1967 | 
             
                # @return [nil] nil
         | 
| 1968 1968 | 
             
                #
         | 
| 1969 1969 | 
             
                # @see https://processing.org/reference/quadraticVertex_.html
         | 
| 1970 | 
            -
                # @see https://p5js.org/reference | 
| 1970 | 
            +
                # @see https://p5js.org/reference/p5/quadraticVertex/
         | 
| 1971 1971 | 
             
                #
         | 
| 1972 1972 | 
             
                def quadraticVertex(cx, cy, x3, y3)
         | 
| 1973 1973 | 
             
                  (@drawingShape__ or raise "quadraticVertex() must be called after beginShape()")
         | 
| @@ -1992,7 +1992,7 @@ module Processing | |
| 1992 1992 | 
             
                # @return [nil] nil
         | 
| 1993 1993 | 
             
                #
         | 
| 1994 1994 | 
             
                # @see https://processing.org/reference/copy_.html
         | 
| 1995 | 
            -
                # @see https://p5js.org/reference | 
| 1995 | 
            +
                # @see https://p5js.org/reference/p5/copy/
         | 
| 1996 1996 | 
             
                #
         | 
| 1997 1997 | 
             
                def copy(img = nil, sx, sy, sw, sh, dx, dy, dw, dh)
         | 
| 1998 1998 | 
             
                  blend img, sx, sy, sw, sh, dx, dy, dw, dh, BLEND
         | 
| @@ -2017,7 +2017,7 @@ module Processing | |
| 2017 2017 | 
             
                # @return [nil] nil
         | 
| 2018 2018 | 
             
                #
         | 
| 2019 2019 | 
             
                # @see https://processing.org/reference/blend_.html
         | 
| 2020 | 
            -
                # @see https://p5js.org/reference | 
| 2020 | 
            +
                # @see https://p5js.org/reference/p5/blend/
         | 
| 2021 2021 | 
             
                #
         | 
| 2022 2022 | 
             
                def blend(img = nil, sx, sy, sw, sh, dx, dy, dw, dh, mode)
         | 
| 2023 2023 | 
             
                  assertDrawing__
         | 
| @@ -2031,7 +2031,7 @@ module Processing | |
| 2031 2031 | 
             
                # @return [nil] nil
         | 
| 2032 2032 | 
             
                #
         | 
| 2033 2033 | 
             
                # @see https://processing.org/reference/loadPixels_.html
         | 
| 2034 | 
            -
                # @see https://p5js.org/reference | 
| 2034 | 
            +
                # @see https://p5js.org/reference/p5/loadPixels/
         | 
| 2035 2035 | 
             
                #
         | 
| 2036 2036 | 
             
                def loadPixels()
         | 
| 2037 2037 | 
             
                  @pixels__ = getInternal__.pixels
         | 
| @@ -2042,7 +2042,7 @@ module Processing | |
| 2042 2042 | 
             
                # @return [nil] nil
         | 
| 2043 2043 | 
             
                #
         | 
| 2044 2044 | 
             
                # @see https://processing.org/reference/updatePixels_.html
         | 
| 2045 | 
            -
                # @see https://p5js.org/reference | 
| 2045 | 
            +
                # @see https://p5js.org/reference/p5/updatePixels/
         | 
| 2046 2046 | 
             
                #
         | 
| 2047 2047 | 
             
                def updatePixels(&block)
         | 
| 2048 2048 | 
             
                  return if !block && !@pixels__
         | 
| @@ -2063,7 +2063,7 @@ module Processing | |
| 2063 2063 | 
             
                # @return [Array] color array
         | 
| 2064 2064 | 
             
                #
         | 
| 2065 2065 | 
             
                # @see https://processing.org/reference/pixels.html
         | 
| 2066 | 
            -
                # @see https://p5js.org/reference | 
| 2066 | 
            +
                # @see https://p5js.org/reference/p5/pixels/
         | 
| 2067 2067 | 
             
                #
         | 
| 2068 2068 | 
             
                def pixels()
         | 
| 2069 2069 | 
             
                  @pixels__
         | 
| @@ -2076,7 +2076,7 @@ module Processing | |
| 2076 2076 | 
             
                # @return [nil] nil
         | 
| 2077 2077 | 
             
                #
         | 
| 2078 2078 | 
             
                # @see https://processing.org/reference/save_.html
         | 
| 2079 | 
            -
                # @see https://p5js.org/reference | 
| 2079 | 
            +
                # @see https://p5js.org/reference/p5/save/
         | 
| 2080 2080 | 
             
                #
         | 
| 2081 2081 | 
             
                def save(filename)
         | 
| 2082 2082 | 
             
                  getInternal__.save filename
         | 
| @@ -2095,7 +2095,7 @@ module Processing | |
| 2095 2095 | 
             
                # @return [nil] nil
         | 
| 2096 2096 | 
             
                #
         | 
| 2097 2097 | 
             
                # @see https://processing.org/reference/translate_.html
         | 
| 2098 | 
            -
                # @see https://p5js.org/reference | 
| 2098 | 
            +
                # @see https://p5js.org/reference/p5/translate/
         | 
| 2099 2099 | 
             
                #
         | 
| 2100 2100 | 
             
                def translate(x, y, z = 0)
         | 
| 2101 2101 | 
             
                  assertDrawing__
         | 
| @@ -2117,7 +2117,7 @@ module Processing | |
| 2117 2117 | 
             
                # @return [nil] nil
         | 
| 2118 2118 | 
             
                #
         | 
| 2119 2119 | 
             
                # @see https://processing.org/reference/scale_.html
         | 
| 2120 | 
            -
                # @see https://p5js.org/reference | 
| 2120 | 
            +
                # @see https://p5js.org/reference/p5/scale/
         | 
| 2121 2121 | 
             
                #
         | 
| 2122 2122 | 
             
                def scale(x, y = nil, z = 1)
         | 
| 2123 2123 | 
             
                  assertDrawing__
         | 
| @@ -2132,7 +2132,7 @@ module Processing | |
| 2132 2132 | 
             
                # @return [nil] nil
         | 
| 2133 2133 | 
             
                #
         | 
| 2134 2134 | 
             
                # @see https://processing.org/reference/rotate_.html
         | 
| 2135 | 
            -
                # @see https://p5js.org/reference | 
| 2135 | 
            +
                # @see https://p5js.org/reference/p5/rotate/
         | 
| 2136 2136 | 
             
                #
         | 
| 2137 2137 | 
             
                def rotate(angle)
         | 
| 2138 2138 | 
             
                  assertDrawing__
         | 
| @@ -2147,7 +2147,7 @@ module Processing | |
| 2147 2147 | 
             
                # @return [nil] nil
         | 
| 2148 2148 | 
             
                #
         | 
| 2149 2149 | 
             
                # @see https://processing.org/reference/rotateX_.html
         | 
| 2150 | 
            -
                # @see https://p5js.org/reference | 
| 2150 | 
            +
                # @see https://p5js.org/reference/p5/rotateX/
         | 
| 2151 2151 | 
             
                #
         | 
| 2152 2152 | 
             
                def rotateX(angle)
         | 
| 2153 2153 | 
             
                  assertDrawing__
         | 
| @@ -2162,7 +2162,7 @@ module Processing | |
| 2162 2162 | 
             
                # @return [nil] nil
         | 
| 2163 2163 | 
             
                #
         | 
| 2164 2164 | 
             
                # @see https://processing.org/reference/rotateY_.html
         | 
| 2165 | 
            -
                # @see https://p5js.org/reference | 
| 2165 | 
            +
                # @see https://p5js.org/reference/p5/rotateY/
         | 
| 2166 2166 | 
             
                #
         | 
| 2167 2167 | 
             
                def rotateY(angle)
         | 
| 2168 2168 | 
             
                  assertDrawing__
         | 
| @@ -2177,7 +2177,7 @@ module Processing | |
| 2177 2177 | 
             
                # @return [nil] nil
         | 
| 2178 2178 | 
             
                #
         | 
| 2179 2179 | 
             
                # @see https://processing.org/reference/rotateZ_.html
         | 
| 2180 | 
            -
                # @see https://p5js.org/reference | 
| 2180 | 
            +
                # @see https://p5js.org/reference/p5/rotateZ/
         | 
| 2181 2181 | 
             
                #
         | 
| 2182 2182 | 
             
                def rotateZ(angle)
         | 
| 2183 2183 | 
             
                  assertDrawing__
         | 
| @@ -2192,7 +2192,7 @@ module Processing | |
| 2192 2192 | 
             
                # @return [nil] nil
         | 
| 2193 2193 | 
             
                #
         | 
| 2194 2194 | 
             
                # @see https://processing.org/reference/shearX_.html
         | 
| 2195 | 
            -
                # @see https://p5js.org/reference | 
| 2195 | 
            +
                # @see https://p5js.org/reference/p5/shearX/
         | 
| 2196 2196 | 
             
                #
         | 
| 2197 2197 | 
             
                def shearX(angle)
         | 
| 2198 2198 | 
             
                  t = Math.tan toRadians__(angle)
         | 
| @@ -2211,7 +2211,7 @@ module Processing | |
| 2211 2211 | 
             
                # @return [nil] nil
         | 
| 2212 2212 | 
             
                #
         | 
| 2213 2213 | 
             
                # @see https://processing.org/reference/shearY_.html
         | 
| 2214 | 
            -
                # @see https://p5js.org/reference | 
| 2214 | 
            +
                # @see https://p5js.org/reference/p5/shearY/
         | 
| 2215 2215 | 
             
                #
         | 
| 2216 2216 | 
             
                def shearY(angle)
         | 
| 2217 2217 | 
             
                  t = Math.tan toRadians__(angle)
         | 
| @@ -2277,7 +2277,7 @@ module Processing | |
| 2277 2277 | 
             
                # @return [nil] nil
         | 
| 2278 2278 | 
             
                #
         | 
| 2279 2279 | 
             
                # @see https://processing.org/reference/applyMatrix_.html
         | 
| 2280 | 
            -
                # @see https://p5js.org/reference | 
| 2280 | 
            +
                # @see https://p5js.org/reference/p5/applyMatrix/
         | 
| 2281 2281 | 
             
                #
         | 
| 2282 2282 | 
             
                def applyMatrix(*args)
         | 
| 2283 2283 | 
             
                  assertDrawing__
         | 
| @@ -2303,7 +2303,7 @@ module Processing | |
| 2303 2303 | 
             
                # @return [nil] nil
         | 
| 2304 2304 | 
             
                #
         | 
| 2305 2305 | 
             
                # @see https://processing.org/reference/resetMatrix_.html
         | 
| 2306 | 
            -
                # @see https://p5js.org/reference | 
| 2306 | 
            +
                # @see https://p5js.org/reference/p5/resetMatrix/
         | 
| 2307 2307 | 
             
                #
         | 
| 2308 2308 | 
             
                def resetMatrix()
         | 
| 2309 2309 | 
             
                  assertDrawing__
         | 
| @@ -2425,7 +2425,7 @@ module Processing | |
| 2425 2425 | 
             
                # @return [Object] result of the expression at the end of the block
         | 
| 2426 2426 | 
             
                #
         | 
| 2427 2427 | 
             
                # @see https://processing.org/reference/push_.html
         | 
| 2428 | 
            -
                # @see https://p5js.org/reference | 
| 2428 | 
            +
                # @see https://p5js.org/reference/p5/push/
         | 
| 2429 2429 | 
             
                #
         | 
| 2430 2430 | 
             
                def push(&block)
         | 
| 2431 2431 | 
             
                  pushMatrix
         | 
| @@ -2440,7 +2440,7 @@ module Processing | |
| 2440 2440 | 
             
                # @return [nil] nil
         | 
| 2441 2441 | 
             
                #
         | 
| 2442 2442 | 
             
                # @see https://processing.org/reference/pop_.html
         | 
| 2443 | 
            -
                # @see https://p5js.org/reference | 
| 2443 | 
            +
                # @see https://p5js.org/reference/p5/pop/
         | 
| 2444 2444 | 
             
                #
         | 
| 2445 2445 | 
             
                def pop()
         | 
| 2446 2446 | 
             
                  popMatrix
         | 
| @@ -2481,7 +2481,7 @@ module Processing | |
| 2481 2481 | 
             
                # @return [Numeric] absolute number
         | 
| 2482 2482 | 
             
                #
         | 
| 2483 2483 | 
             
                # @see https://processing.org/reference/abs_.html
         | 
| 2484 | 
            -
                # @see https://p5js.org/reference | 
| 2484 | 
            +
                # @see https://p5js.org/reference/p5/abs/
         | 
| 2485 2485 | 
             
                #
         | 
| 2486 2486 | 
             
                def abs(value)
         | 
| 2487 2487 | 
             
                  value.abs
         | 
| @@ -2494,7 +2494,7 @@ module Processing | |
| 2494 2494 | 
             
                # @return [Numeric] rounded up number
         | 
| 2495 2495 | 
             
                #
         | 
| 2496 2496 | 
             
                # @see https://processing.org/reference/ceil_.html
         | 
| 2497 | 
            -
                # @see https://p5js.org/reference | 
| 2497 | 
            +
                # @see https://p5js.org/reference/p5/ceil/
         | 
| 2498 2498 | 
             
                #
         | 
| 2499 2499 | 
             
                def ceil(value)
         | 
| 2500 2500 | 
             
                  value.ceil
         | 
| @@ -2507,7 +2507,7 @@ module Processing | |
| 2507 2507 | 
             
                # @return [Numeric] rounded down number
         | 
| 2508 2508 | 
             
                #
         | 
| 2509 2509 | 
             
                # @see https://processing.org/reference/floor_.html
         | 
| 2510 | 
            -
                # @see https://p5js.org/reference | 
| 2510 | 
            +
                # @see https://p5js.org/reference/p5/floor/
         | 
| 2511 2511 | 
             
                #
         | 
| 2512 2512 | 
             
                def floor(value)
         | 
| 2513 2513 | 
             
                  value.floor
         | 
| @@ -2520,7 +2520,7 @@ module Processing | |
| 2520 2520 | 
             
                # @return [Numeric] rounded number
         | 
| 2521 2521 | 
             
                #
         | 
| 2522 2522 | 
             
                # @see https://processing.org/reference/round_.html
         | 
| 2523 | 
            -
                # @see https://p5js.org/reference | 
| 2523 | 
            +
                # @see https://p5js.org/reference/p5/round/
         | 
| 2524 2524 | 
             
                #
         | 
| 2525 2525 | 
             
                def round(value)
         | 
| 2526 2526 | 
             
                  value.round
         | 
| @@ -2533,7 +2533,7 @@ module Processing | |
| 2533 2533 | 
             
                # @return [Numeric] result number
         | 
| 2534 2534 | 
             
                #
         | 
| 2535 2535 | 
             
                # @see https://processing.org/reference/log_.html
         | 
| 2536 | 
            -
                # @see https://p5js.org/reference | 
| 2536 | 
            +
                # @see https://p5js.org/reference/p5/log/
         | 
| 2537 2537 | 
             
                #
         | 
| 2538 2538 | 
             
                def log(n)
         | 
| 2539 2539 | 
             
                  Math.log n
         | 
| @@ -2546,7 +2546,7 @@ module Processing | |
| 2546 2546 | 
             
                # @return [Numeric] result number
         | 
| 2547 2547 | 
             
                #
         | 
| 2548 2548 | 
             
                # @see https://processing.org/reference/exp_.html
         | 
| 2549 | 
            -
                # @see https://p5js.org/reference | 
| 2549 | 
            +
                # @see https://p5js.org/reference/p5/exp/
         | 
| 2550 2550 | 
             
                #
         | 
| 2551 2551 | 
             
                def exp(n)
         | 
| 2552 2552 | 
             
                  Math.exp n
         | 
| @@ -2560,7 +2560,7 @@ module Processing | |
| 2560 2560 | 
             
                # @return [Numeric] value ** exponent
         | 
| 2561 2561 | 
             
                #
         | 
| 2562 2562 | 
             
                # @see https://processing.org/reference/pow_.html
         | 
| 2563 | 
            -
                # @see https://p5js.org/reference | 
| 2563 | 
            +
                # @see https://p5js.org/reference/p5/pow/
         | 
| 2564 2564 | 
             
                #
         | 
| 2565 2565 | 
             
                def pow(value, exponent)
         | 
| 2566 2566 | 
             
                  value ** exponent
         | 
| @@ -2573,7 +2573,7 @@ module Processing | |
| 2573 2573 | 
             
                # @return [Numeric] squared value
         | 
| 2574 2574 | 
             
                #
         | 
| 2575 2575 | 
             
                # @see https://processing.org/reference/sq_.html
         | 
| 2576 | 
            -
                # @see https://p5js.org/reference | 
| 2576 | 
            +
                # @see https://p5js.org/reference/p5/sq/
         | 
| 2577 2577 | 
             
                #
         | 
| 2578 2578 | 
             
                def sq(value)
         | 
| 2579 2579 | 
             
                  value * value
         | 
| @@ -2586,7 +2586,7 @@ module Processing | |
| 2586 2586 | 
             
                # @return [Numeric] squared value
         | 
| 2587 2587 | 
             
                #
         | 
| 2588 2588 | 
             
                # @see https://processing.org/reference/sqrt_.html
         | 
| 2589 | 
            -
                # @see https://p5js.org/reference | 
| 2589 | 
            +
                # @see https://p5js.org/reference/p5/sqrt/
         | 
| 2590 2590 | 
             
                #
         | 
| 2591 2591 | 
             
                def sqrt(value)
         | 
| 2592 2592 | 
             
                  Math.sqrt value
         | 
| @@ -2604,7 +2604,7 @@ module Processing | |
| 2604 2604 | 
             
                # @return [Numeric] magnitude
         | 
| 2605 2605 | 
             
                #
         | 
| 2606 2606 | 
             
                # @see https://processing.org/reference/mag_.html
         | 
| 2607 | 
            -
                # @see https://p5js.org/reference | 
| 2607 | 
            +
                # @see https://p5js.org/reference/p5/mag/
         | 
| 2608 2608 | 
             
                #
         | 
| 2609 2609 | 
             
                def mag(*args)
         | 
| 2610 2610 | 
             
                  x, y, z = *args
         | 
| @@ -2630,7 +2630,7 @@ module Processing | |
| 2630 2630 | 
             
                # @return [Numeric] distance between 2 points
         | 
| 2631 2631 | 
             
                #
         | 
| 2632 2632 | 
             
                # @see https://processing.org/reference/dist_.html
         | 
| 2633 | 
            -
                # @see https://p5js.org/reference | 
| 2633 | 
            +
                # @see https://p5js.org/reference/p5/dist/
         | 
| 2634 2634 | 
             
                #
         | 
| 2635 2635 | 
             
                def dist(*args)
         | 
| 2636 2636 | 
             
                  case args.size
         | 
| @@ -2655,7 +2655,7 @@ module Processing | |
| 2655 2655 | 
             
                # @return [Numeric] normalized value between 0..1
         | 
| 2656 2656 | 
             
                #
         | 
| 2657 2657 | 
             
                # @see https://processing.org/reference/norm_.html
         | 
| 2658 | 
            -
                # @see https://p5js.org/reference | 
| 2658 | 
            +
                # @see https://p5js.org/reference/p5/norm/
         | 
| 2659 2659 | 
             
                #
         | 
| 2660 2660 | 
             
                def norm(value, start, stop)
         | 
| 2661 2661 | 
             
                  (value.to_f - start.to_f) / (stop.to_f - start.to_f)
         | 
| @@ -2670,7 +2670,7 @@ module Processing | |
| 2670 2670 | 
             
                # @return [Numeric] interporated number
         | 
| 2671 2671 | 
             
                #
         | 
| 2672 2672 | 
             
                # @see https://processing.org/reference/lerp_.html
         | 
| 2673 | 
            -
                # @see https://p5js.org/reference | 
| 2673 | 
            +
                # @see https://p5js.org/reference/p5/lerp/
         | 
| 2674 2674 | 
             
                #
         | 
| 2675 2675 | 
             
                def lerp(start, stop, amount)
         | 
| 2676 2676 | 
             
                  start + (stop - start) * amount
         | 
| @@ -2685,7 +2685,7 @@ module Processing | |
| 2685 2685 | 
             
                # @return [Integer] interporated color
         | 
| 2686 2686 | 
             
                #
         | 
| 2687 2687 | 
             
                # @see https://processing.org/reference/lerpColor_.html
         | 
| 2688 | 
            -
                # @see https://p5js.org/reference | 
| 2688 | 
            +
                # @see https://p5js.org/reference/p5/lerpColor/
         | 
| 2689 2689 | 
             
                #
         | 
| 2690 2690 | 
             
                def lerpColor(color1, color2, amount)
         | 
| 2691 2691 | 
             
                  color(
         | 
| @@ -2706,7 +2706,7 @@ module Processing | |
| 2706 2706 | 
             
                # @return [Numeric] mapped number
         | 
| 2707 2707 | 
             
                #
         | 
| 2708 2708 | 
             
                # @see https://processing.org/reference/map_.html
         | 
| 2709 | 
            -
                # @see https://p5js.org/reference | 
| 2709 | 
            +
                # @see https://p5js.org/reference/p5/map/
         | 
| 2710 2710 | 
             
                #
         | 
| 2711 2711 | 
             
                def map(value, start1, stop1, start2, stop2)
         | 
| 2712 2712 | 
             
                  lerp start2, stop2, norm(value, start1, stop1)
         | 
| @@ -2726,7 +2726,7 @@ module Processing | |
| 2726 2726 | 
             
                # @return [Numeric] minimum value
         | 
| 2727 2727 | 
             
                #
         | 
| 2728 2728 | 
             
                # @see https://processing.org/reference/min_.html
         | 
| 2729 | 
            -
                # @see https://p5js.org/reference | 
| 2729 | 
            +
                # @see https://p5js.org/reference/p5/min/
         | 
| 2730 2730 | 
             
                #
         | 
| 2731 2731 | 
             
                def min(*args)
         | 
| 2732 2732 | 
             
                  args.flatten.min
         | 
| @@ -2746,7 +2746,7 @@ module Processing | |
| 2746 2746 | 
             
                # @return [Numeric] maximum value
         | 
| 2747 2747 | 
             
                #
         | 
| 2748 2748 | 
             
                # @see https://processing.org/reference/max_.html
         | 
| 2749 | 
            -
                # @see https://p5js.org/reference | 
| 2749 | 
            +
                # @see https://p5js.org/reference/p5/max/
         | 
| 2750 2750 | 
             
                #
         | 
| 2751 2751 | 
             
                def max(*args)
         | 
| 2752 2752 | 
             
                  args.flatten.max
         | 
| @@ -2761,7 +2761,7 @@ module Processing | |
| 2761 2761 | 
             
                # @return [Numeric] constrained number
         | 
| 2762 2762 | 
             
                #
         | 
| 2763 2763 | 
             
                # @see https://processing.org/reference/constrain_.html
         | 
| 2764 | 
            -
                # @see https://p5js.org/reference | 
| 2764 | 
            +
                # @see https://p5js.org/reference/p5/constrain/
         | 
| 2765 2765 | 
             
                #
         | 
| 2766 2766 | 
             
                def constrain(value, min, max)
         | 
| 2767 2767 | 
             
                  value < min ? min : (value > max ? max : value)
         | 
| @@ -2774,7 +2774,7 @@ module Processing | |
| 2774 2774 | 
             
                # @return [Numeric] radian
         | 
| 2775 2775 | 
             
                #
         | 
| 2776 2776 | 
             
                # @see https://processing.org/reference/radians_.html
         | 
| 2777 | 
            -
                # @see https://p5js.org/reference | 
| 2777 | 
            +
                # @see https://p5js.org/reference/p5/radians/
         | 
| 2778 2778 | 
             
                #
         | 
| 2779 2779 | 
             
                def radians(degree)
         | 
| 2780 2780 | 
             
                  degree * DEG2RAD__
         | 
| @@ -2787,7 +2787,7 @@ module Processing | |
| 2787 2787 | 
             
                # @return [Numeric] degree
         | 
| 2788 2788 | 
             
                #
         | 
| 2789 2789 | 
             
                # @see https://processing.org/reference/degrees_.html
         | 
| 2790 | 
            -
                # @see https://p5js.org/reference | 
| 2790 | 
            +
                # @see https://p5js.org/reference/p5/degrees/
         | 
| 2791 2791 | 
             
                #
         | 
| 2792 2792 | 
             
                def degrees(radian)
         | 
| 2793 2793 | 
             
                  radian * RAD2DEG__
         | 
| @@ -2800,7 +2800,7 @@ module Processing | |
| 2800 2800 | 
             
                # @return [Numeric] the sine
         | 
| 2801 2801 | 
             
                #
         | 
| 2802 2802 | 
             
                # @see https://processing.org/reference/sin_.html
         | 
| 2803 | 
            -
                # @see https://p5js.org/reference | 
| 2803 | 
            +
                # @see https://p5js.org/reference/p5/sin/
         | 
| 2804 2804 | 
             
                #
         | 
| 2805 2805 | 
             
                def sin(angle)
         | 
| 2806 2806 | 
             
                  Math.sin angle
         | 
| @@ -2813,7 +2813,7 @@ module Processing | |
| 2813 2813 | 
             
                # @return [Numeric] the cosine
         | 
| 2814 2814 | 
             
                #
         | 
| 2815 2815 | 
             
                # @see https://processing.org/reference/cos_.html
         | 
| 2816 | 
            -
                # @see https://p5js.org/reference | 
| 2816 | 
            +
                # @see https://p5js.org/reference/p5/cos/
         | 
| 2817 2817 | 
             
                #
         | 
| 2818 2818 | 
             
                def cos(angle)
         | 
| 2819 2819 | 
             
                  Math.cos angle
         | 
| @@ -2826,7 +2826,7 @@ module Processing | |
| 2826 2826 | 
             
                # @return [Numeric] the tangent
         | 
| 2827 2827 | 
             
                #
         | 
| 2828 2828 | 
             
                # @see https://processing.org/reference/tan_.html
         | 
| 2829 | 
            -
                # @see https://p5js.org/reference | 
| 2829 | 
            +
                # @see https://p5js.org/reference/p5/tan/
         | 
| 2830 2830 | 
             
                #
         | 
| 2831 2831 | 
             
                def tan(angle)
         | 
| 2832 2832 | 
             
                  Math.tan angle
         | 
| @@ -2839,7 +2839,7 @@ module Processing | |
| 2839 2839 | 
             
                # @return [Numeric] the arc sine
         | 
| 2840 2840 | 
             
                #
         | 
| 2841 2841 | 
             
                # @see https://processing.org/reference/asin_.html
         | 
| 2842 | 
            -
                # @see https://p5js.org/reference | 
| 2842 | 
            +
                # @see https://p5js.org/reference/p5/asin/
         | 
| 2843 2843 | 
             
                #
         | 
| 2844 2844 | 
             
                def asin(value)
         | 
| 2845 2845 | 
             
                  Math.asin value
         | 
| @@ -2852,7 +2852,7 @@ module Processing | |
| 2852 2852 | 
             
                # @return [Numeric] the arc cosine
         | 
| 2853 2853 | 
             
                #
         | 
| 2854 2854 | 
             
                # @see https://processing.org/reference/acos_.html
         | 
| 2855 | 
            -
                # @see https://p5js.org/reference | 
| 2855 | 
            +
                # @see https://p5js.org/reference/p5/acos/
         | 
| 2856 2856 | 
             
                #
         | 
| 2857 2857 | 
             
                def acos(value)
         | 
| 2858 2858 | 
             
                  Math.acos value
         | 
| @@ -2865,7 +2865,7 @@ module Processing | |
| 2865 2865 | 
             
                # @return [Numeric] the arc tangent
         | 
| 2866 2866 | 
             
                #
         | 
| 2867 2867 | 
             
                # @see https://processing.org/reference/atan_.html
         | 
| 2868 | 
            -
                # @see https://p5js.org/reference | 
| 2868 | 
            +
                # @see https://p5js.org/reference/p5/atan/
         | 
| 2869 2869 | 
             
                #
         | 
| 2870 2870 | 
             
                def atan(value)
         | 
| 2871 2871 | 
             
                  Math.atan value
         | 
| @@ -2879,7 +2879,7 @@ module Processing | |
| 2879 2879 | 
             
                # @return [Numeric] the angle in radians
         | 
| 2880 2880 | 
             
                #
         | 
| 2881 2881 | 
             
                # @see https://processing.org/reference/atan2_.html
         | 
| 2882 | 
            -
                # @see https://p5js.org/reference | 
| 2882 | 
            +
                # @see https://p5js.org/reference/p5/atan2/
         | 
| 2883 2883 | 
             
                #
         | 
| 2884 2884 | 
             
                def atan2(y, x)
         | 
| 2885 2885 | 
             
                  Math.atan2 y, x
         | 
| @@ -2896,7 +2896,7 @@ module Processing | |
| 2896 2896 | 
             
                # @return [Numeric] interpolated value
         | 
| 2897 2897 | 
             
                #
         | 
| 2898 2898 | 
             
                # @see https://processing.org/reference/curvePoint_.html
         | 
| 2899 | 
            -
                # @see https://p5js.org/reference | 
| 2899 | 
            +
                # @see https://p5js.org/reference/p5/curvePoint/
         | 
| 2900 2900 | 
             
                #
         | 
| 2901 2901 | 
             
                def curvePoint(a, b, c, d, t)
         | 
| 2902 2902 | 
             
                  s  = @curveTightness__
         | 
| @@ -2920,7 +2920,7 @@ module Processing | |
| 2920 2920 | 
             
                # @return [Numeric] tangent value
         | 
| 2921 2921 | 
             
                #
         | 
| 2922 2922 | 
             
                # @see https://processing.org/reference/curveTangent_.html
         | 
| 2923 | 
            -
                # @see https://p5js.org/reference | 
| 2923 | 
            +
                # @see https://p5js.org/reference/p5/curveTangent/
         | 
| 2924 2924 | 
             
                #
         | 
| 2925 2925 | 
             
                def curveTangent(a, b, c, d, t)
         | 
| 2926 2926 | 
             
                  s = @curveTightness__
         | 
| @@ -2944,7 +2944,7 @@ module Processing | |
| 2944 2944 | 
             
                # @return [Numeric] interpolated value
         | 
| 2945 2945 | 
             
                #
         | 
| 2946 2946 | 
             
                # @see https://processing.org/reference/bezierPoint_.html
         | 
| 2947 | 
            -
                # @see https://p5js.org/reference | 
| 2947 | 
            +
                # @see https://p5js.org/reference/p5/bezierPoint/
         | 
| 2948 2948 | 
             
                #
         | 
| 2949 2949 | 
             
                def bezierPoint(a, b, c, d, t)
         | 
| 2950 2950 | 
             
                  tt = 1.0 - t
         | 
| @@ -2965,7 +2965,7 @@ module Processing | |
| 2965 2965 | 
             
                # @return [Numeric] tangent value
         | 
| 2966 2966 | 
             
                #
         | 
| 2967 2967 | 
             
                # @see https://processing.org/reference/bezierTangent_.html
         | 
| 2968 | 
            -
                # @see https://p5js.org/reference | 
| 2968 | 
            +
                # @see https://p5js.org/reference/p5/bezierTangent/
         | 
| 2969 2969 | 
             
                #
         | 
| 2970 2970 | 
             
                def bezierTangent(a, b, c, d, t)
         | 
| 2971 2971 | 
             
                  tt = 1.0 - t
         | 
| @@ -2990,7 +2990,7 @@ module Processing | |
| 2990 2990 | 
             
                # @return [Numeric] noise value (0.0..1.0)
         | 
| 2991 2991 | 
             
                #
         | 
| 2992 2992 | 
             
                # @see https://processing.org/reference/noise_.html
         | 
| 2993 | 
            -
                # @see https://p5js.org/reference | 
| 2993 | 
            +
                # @see https://p5js.org/reference/p5/noise/
         | 
| 2994 2994 | 
             
                #
         | 
| 2995 2995 | 
             
                def noise(x, y = 0, z = 0)
         | 
| 2996 2996 | 
             
                  seed, falloff = @noiseSeed__, @noiseFallOff__
         | 
| @@ -3012,7 +3012,7 @@ module Processing | |
| 3012 3012 | 
             
                # @return [nil] nil
         | 
| 3013 3013 | 
             
                #
         | 
| 3014 3014 | 
             
                # @see https://processing.org/reference/noiseSeed_.html
         | 
| 3015 | 
            -
                # @see https://p5js.org/reference | 
| 3015 | 
            +
                # @see https://p5js.org/reference/p5/noiseSeed/
         | 
| 3016 3016 | 
             
                #
         | 
| 3017 3017 | 
             
                def noiseSeed(seed)
         | 
| 3018 3018 | 
             
                  @noiseSeed__ = Random.new(seed).rand 0.0..1.0
         | 
| @@ -3026,7 +3026,7 @@ module Processing | |
| 3026 3026 | 
             
                # @return [nil] nil
         | 
| 3027 3027 | 
             
                #
         | 
| 3028 3028 | 
             
                # @see https://processing.org/reference/noiseDetail_.html
         | 
| 3029 | 
            -
                # @see https://p5js.org/reference | 
| 3029 | 
            +
                # @see https://p5js.org/reference/p5/noiseDetail/
         | 
| 3030 3030 | 
             
                #
         | 
| 3031 3031 | 
             
                def noiseDetail(lod, falloff = nil)
         | 
| 3032 3032 | 
             
                  @noiseOctaves__ = lod     if lod     && lod > 0
         | 
| @@ -3046,7 +3046,7 @@ module Processing | |
| 3046 3046 | 
             
                # @return [Float] random number
         | 
| 3047 3047 | 
             
                #
         | 
| 3048 3048 | 
             
                # @see https://processing.org/reference/random_.html
         | 
| 3049 | 
            -
                # @see https://p5js.org/reference | 
| 3049 | 
            +
                # @see https://p5js.org/reference/p5/random/
         | 
| 3050 3050 | 
             
                #
         | 
| 3051 3051 | 
             
                def random(*args)
         | 
| 3052 3052 | 
             
                  if args.first.kind_of? Array
         | 
| @@ -3065,7 +3065,7 @@ module Processing | |
| 3065 3065 | 
             
                # @return [nil] nil
         | 
| 3066 3066 | 
             
                #
         | 
| 3067 3067 | 
             
                # @see https://processing.org/reference/randomSeed_.html
         | 
| 3068 | 
            -
                # @see https://p5js.org/reference | 
| 3068 | 
            +
                # @see https://p5js.org/reference/p5/randomSeed/
         | 
| 3069 3069 | 
             
                #
         | 
| 3070 3070 | 
             
                def randomSeed(seed)
         | 
| 3071 3071 | 
             
                  @random__       = Random.new seed
         | 
| @@ -3080,7 +3080,7 @@ module Processing | |
| 3080 3080 | 
             
                # @return [Float] random number
         | 
| 3081 3081 | 
             
                #
         | 
| 3082 3082 | 
             
                # @see https://processing.org/reference/randomGaussian_.html
         | 
| 3083 | 
            -
                # @see https://p5js.org/reference | 
| 3083 | 
            +
                # @see https://p5js.org/reference/p5/randomGaussian/
         | 
| 3084 3084 | 
             
                #
         | 
| 3085 3085 | 
             
                def randomGaussian(mean = 0, sd = 1)
         | 
| 3086 3086 | 
             
                  value =
         | 
| @@ -3113,7 +3113,7 @@ module Processing | |
| 3113 3113 | 
             
                #
         | 
| 3114 3114 | 
             
                # @return [Vector] new vector
         | 
| 3115 3115 | 
             
                #
         | 
| 3116 | 
            -
                # @see https://p5js.org/reference | 
| 3116 | 
            +
                # @see https://p5js.org/reference/p5/createVector/
         | 
| 3117 3117 | 
             
                #
         | 
| 3118 3118 | 
             
                def createVector(*args)
         | 
| 3119 3119 | 
             
                  Vector.new(*args, context: self)
         | 
| @@ -3145,7 +3145,7 @@ module Processing | |
| 3145 3145 | 
             
                # @return [Image] new image
         | 
| 3146 3146 | 
             
                #
         | 
| 3147 3147 | 
             
                # @see https://processing.org/reference/createImage_.html
         | 
| 3148 | 
            -
                # @see https://p5js.org/reference | 
| 3148 | 
            +
                # @see https://p5js.org/reference/p5/createImage/
         | 
| 3149 3149 | 
             
                #
         | 
| 3150 3150 | 
             
                def createImage(w, h, format = RGBA)
         | 
| 3151 3151 | 
             
                  colorspace = {RGB => Rays::RGB, RGBA => Rays::RGBA}[format]
         | 
| @@ -3227,7 +3227,7 @@ module Processing | |
| 3227 3227 | 
             
                # @return [Graphics] graphics object
         | 
| 3228 3228 | 
             
                #
         | 
| 3229 3229 | 
             
                # @see https://processing.org/reference/createGraphics_.html
         | 
| 3230 | 
            -
                # @see https://p5js.org/reference | 
| 3230 | 
            +
                # @see https://p5js.org/reference/p5/createGraphics/
         | 
| 3231 3231 | 
             
                #
         | 
| 3232 3232 | 
             
                def createGraphics(width, height, pixelDensity = 1)
         | 
| 3233 3233 | 
             
                  Graphics.new width, height, pixelDensity
         | 
| @@ -3265,7 +3265,7 @@ module Processing | |
| 3265 3265 | 
             
                #
         | 
| 3266 3266 | 
             
                # @return [Shader] shader object
         | 
| 3267 3267 | 
             
                #
         | 
| 3268 | 
            -
                # @see https://p5js.org/reference | 
| 3268 | 
            +
                # @see https://p5js.org/reference/p5/createShader/
         | 
| 3269 3269 | 
             
                #
         | 
| 3270 3270 | 
             
                def createShader(vert, frag)
         | 
| 3271 3271 | 
             
                  vert = File.read if vert && File.exist?(vert)
         | 
| @@ -3288,7 +3288,7 @@ module Processing | |
| 3288 3288 | 
             
                # @return [Font] loaded font object
         | 
| 3289 3289 | 
             
                #
         | 
| 3290 3290 | 
             
                # @see https://processing.org/reference/loadFont_.html
         | 
| 3291 | 
            -
                # @see https://p5js.org/reference | 
| 3291 | 
            +
                # @see https://p5js.org/reference/p5/loadFont/
         | 
| 3292 3292 | 
             
                #
         | 
| 3293 3293 | 
             
                def loadFont(filename)
         | 
| 3294 3294 | 
             
                  ext = File.extname filename
         | 
| @@ -3306,7 +3306,7 @@ module Processing | |
| 3306 3306 | 
             
                # @return [Image] loaded image object
         | 
| 3307 3307 | 
             
                #
         | 
| 3308 3308 | 
             
                # @see https://processing.org/reference/loadImage_.html
         | 
| 3309 | 
            -
                # @see https://p5js.org/reference | 
| 3309 | 
            +
                # @see https://p5js.org/reference/p5/loadImage/
         | 
| 3310 3310 | 
             
                #
         | 
| 3311 3311 | 
             
                def loadImage(filename, extension = nil)
         | 
| 3312 3312 | 
             
                  ext = extension || File.extname(filename)
         | 
| @@ -3353,7 +3353,7 @@ module Processing | |
| 3353 3353 | 
             
                # @return [Shader] loaded shader object
         | 
| 3354 3354 | 
             
                #
         | 
| 3355 3355 | 
             
                # @see https://processing.org/reference/loadShader_.html
         | 
| 3356 | 
            -
                # @see https://p5js.org/reference | 
| 3356 | 
            +
                # @see https://p5js.org/reference/p5/loadShader/
         | 
| 3357 3357 | 
             
                #
         | 
| 3358 3358 | 
             
                def loadShader(fragPath, vertPath = nil)
         | 
| 3359 3359 | 
             
                  createShader vertPath, fragPath
         |