@@ -728,7 +728,7 @@ p5.prototype.clearDepth = function(depth) {
728
728
* final color results from blending the source pixel's color with the canvas
729
729
* pixel's color. RGB color values from the source and canvas pixels are
730
730
* compared, added, subtracted, multiplied, and divided to create different
731
- * effects. #d41159 values with #d41159 values, greens with greens, and blues with
731
+ * effects. Red values with red values, greens with greens, and blues with
732
732
* blues.
733
733
*
734
734
* The parameter, `mode`, sets the blend mode. For example, calling
@@ -805,14 +805,66 @@ p5.prototype.clearDepth = function(depth) {
805
805
* strokeWeight(30);
806
806
*
807
807
* // Draw the first line.
808
- * stroke('#25b7ff');
808
+ * stroke('#1a85ff');
809
+ * line(25, 25, 75, 75);
810
+ *
811
+ * // Draw the second line.
812
+ * stroke('#d41159');
813
+ * line(75, 25, 25, 75);
814
+ *
815
+ * describe('A faint #1a85ff line and a faint #d41159 line form an X on a gray background. The area where they overlap is #B518B2.');
816
+ * }
817
+ * </code>
818
+ * </div>
819
+ *
820
+ * <div>
821
+ * <code>
822
+ * function setup() {
823
+ * createCanvas(100, 100);
824
+ *
825
+ * background(180);
826
+ *
827
+ * // Set the blend mode.
828
+ * blendMode(ADD);
829
+ *
830
+ * // Style the lines.
831
+ * strokeWeight(30);
832
+ *
833
+ * // Draw the first line.
834
+ * stroke('#1a85ff');
835
+ * line(25, 25, 75, 75);
836
+ *
837
+ * // Draw the second line.
838
+ * stroke('#d41159');
839
+ * line(75, 25, 25, 75);
840
+ *
841
+ * describe('A faint #1a85ff line and a faint #d41159 line form an X on a gray background. The area where they overlap is #b518b2.');
842
+ * }
843
+ * </code>
844
+ * </div>
845
+ *
846
+ * <div>
847
+ * <code>
848
+ * function setup() {
849
+ * createCanvas(100, 100);
850
+ *
851
+ * background(180);
852
+ *
853
+ * // Set the blend mode.
854
+ * blendMode(DARKEST);
855
+ *
856
+ * // Style the lines.
857
+ * strokeWeight(30);
858
+ *
859
+ * // Draw the first line.
860
+ * stroke('#1a85ff');
809
861
* line(25, 25, 75, 75);
810
862
*
811
863
* // Draw the second line.
812
- * stroke('#e6187e ');
864
+ * stroke('#d41159 ');
813
865
* line(75, 25, 25, 75);
814
866
*
815
- * describe('A faint #25b7ff line and a faint #e6187e line form an X on a gray background. The area where they overlap is #b518b2.');
867
+ * describe('A faint #1a85ff line and a faint #d41159 line form an X on a gray background. The area where they overlap is #b518b2.');
816
868
* }
817
869
* </code>
818
870
* </div>
@@ -831,14 +883,14 @@ p5.prototype.clearDepth = function(depth) {
831
883
* strokeWeight(30);
832
884
*
833
885
* // Draw the first line.
834
- * stroke('#006fb4 ');
886
+ * stroke('#1a85ff ');
835
887
* line(25, 25, 75, 75);
836
888
*
837
889
* // Draw the second line.
838
- * stroke('#a50028 ');
890
+ * stroke('#d41159 ');
839
891
* line(75, 25, 25, 75);
840
892
*
841
- * describe('A #006fb4 line and a #a50028 line form an X on a gray background. The area where they overlap is black.');
893
+ * describe('A #1a85ff line and a #d41159 line form an X on a gray background. The area where they overlap is black.');
842
894
* }
843
895
* </code>
844
896
* </div>
@@ -857,14 +909,14 @@ p5.prototype.clearDepth = function(depth) {
857
909
* strokeWeight(30);
858
910
*
859
911
* // Draw the first line.
860
- * stroke('#b4b4ff ');
912
+ * stroke('#1a85ff ');
861
913
* line(25, 25, 75, 75);
862
914
*
863
915
* // Draw the second line.
864
- * stroke('#d4b4b4 ');
916
+ * stroke('#d41159 ');
865
917
* line(75, 25, 25, 75);
866
918
*
867
- * describe('A faint #b4b4ff line and a faint #d4b4b4 line form an X on a gray background. The area where they overlap is #f4ddff .');
919
+ * describe('A faint #1a85ff line and a faint #d41159 line form an X on a gray background. The area where they overlap is #d4b4ff .');
868
920
* }
869
921
* </code>
870
922
* </div>
@@ -883,14 +935,14 @@ p5.prototype.clearDepth = function(depth) {
883
935
* strokeWeight(30);
884
936
*
885
937
* // Draw the first line.
886
- * stroke('#a97d4b ');
938
+ * stroke('#1a85ff ');
887
939
* line(25, 25, 75, 75);
888
940
*
889
941
* // Draw the second line.
890
- * stroke('#a97d4b ');
942
+ * stroke('#d41159 ');
891
943
* line(75, 25, 25, 75);
892
944
*
893
- * describe('A #a97d4b line and a #a97d4b line form an X on a gray background. The area where they overlap is #f4ddff .');
945
+ * describe('A #1a85ff line and a #d41159 line form an X on a gray background. The area where they overlap is #647d70 .');
894
946
* }
895
947
* </code>
896
948
* </div>
@@ -909,14 +961,14 @@ p5.prototype.clearDepth = function(depth) {
909
961
* strokeWeight(30);
910
962
*
911
963
* // Draw the first line.
912
- * stroke('#125eb4 ');
964
+ * stroke('#1a85ff ');
913
965
* line(25, 25, 75, 75);
914
966
*
915
967
* // Draw the second line.
916
- * stroke('#96187e ');
968
+ * stroke('#d41159 ');
917
969
* line(75, 25, 25, 75);
918
970
*
919
- * describe('A #125eb4 line and a #96187e line form an X on a gray background. The area where they overlap is #f4ddff .');
971
+ * describe('A #1a85ff line and a #d41159 line form an X on a gray background. The area where they overlap is #0f063f .');
920
972
* }
921
973
* </code>
922
974
* </div>
@@ -935,14 +987,14 @@ p5.prototype.clearDepth = function(depth) {
935
987
* strokeWeight(30);
936
988
*
937
989
* // Draw the first line.
938
- * stroke('#bcdbff ');
990
+ * stroke('#1a85ff ');
939
991
* line(25, 25, 75, 75);
940
992
*
941
993
* // Draw the second line.
942
- * stroke('#f2b9ce ');
994
+ * stroke('#d41159 ');
943
995
* line(75, 25, 25, 75);
944
996
*
945
- * describe('A faint #bcdbff line and a faint #f2b9ce line form an X on a gray background. The area where they overlap is #f4ddff.');
997
+ * describe('A faint #1a85ff line and a faint #d41159 line form an X on a gray background. The area where they overlap is #f4ddff.');
946
998
* }
947
999
* </code>
948
1000
* </div>
@@ -1013,14 +1065,14 @@ p5.prototype.clearDepth = function(depth) {
1013
1065
* strokeWeight(30);
1014
1066
*
1015
1067
* // Draw the first line.
1016
- * stroke('#9a2f4b ');
1068
+ * stroke('#1a85ff ');
1017
1069
* line(25, 25, 75, 75);
1018
1070
*
1019
1071
* // Draw the second line.
1020
- * stroke('#20a35b ');
1072
+ * stroke('#d41159 ');
1021
1073
* line(75, 25, 25, 75);
1022
1074
*
1023
- * describe('A #9a2f4b line and a #20a35b line form an X on a gray background. The area where they overlap is #647e70 .');
1075
+ * describe('A #1a85ff line and a #d41159 line form an X on a gray background. The area where they overlap is #3a1e0e .');
1024
1076
* }
1025
1077
* </code>
1026
1078
* </div>
@@ -1039,14 +1091,14 @@ p5.prototype.clearDepth = function(depth) {
1039
1091
* strokeWeight(30);
1040
1092
*
1041
1093
* // Draw the first line.
1042
- * stroke('#78b7ff ');
1094
+ * stroke('#1a85ff ');
1043
1095
* line(25, 25, 75, 75);
1044
1096
*
1045
1097
* // Draw the second line.
1046
- * stroke('#e6739d ');
1098
+ * stroke('#d41159 ');
1047
1099
* line(75, 25, 25, 75);
1048
1100
*
1049
- * describe('A faint #78b7ff line and a faint #e6739d line form an X on a gray background. The area where they overlap is #c879ff.');
1101
+ * describe('A faint #1a85ff line and a faint #d41159 line form an X on a gray background. The area where they overlap is #c879ff.');
1050
1102
* }
1051
1103
* </code>
1052
1104
* </div>
@@ -1065,14 +1117,14 @@ p5.prototype.clearDepth = function(depth) {
1065
1117
* strokeWeight(30);
1066
1118
*
1067
1119
* // Draw the first line.
1068
- * stroke('#8ab6d6 ');
1120
+ * stroke('#1a85ff ');
1069
1121
* line(25, 25, 75, 75);
1070
1122
*
1071
1123
* // Draw the second line.
1072
- * stroke('#cb86a4 ');
1124
+ * stroke('#d41159 ');
1073
1125
* line(75, 25, 25, 75);
1074
1126
*
1075
- * describe('A faint #8ab6d6 line and a faint #cb86a4 line form an X on a gray background. The area where they overlap is #aa89cb .');
1127
+ * describe('A faint #1a85ff line and a faint #d41159 line form an X on a gray background. The area where they overlap is #ab87cc .');
1076
1128
* }
1077
1129
* </code>
1078
1130
* </div>
@@ -1091,14 +1143,14 @@ p5.prototype.clearDepth = function(depth) {
1091
1143
* strokeWeight(30);
1092
1144
*
1093
1145
* // Draw the first line.
1094
- * stroke('#c8ffff ');
1146
+ * stroke('#1a85ff ');
1095
1147
* line(25, 25, 75, 75);
1096
1148
*
1097
1149
* // Draw the second line.
1098
- * stroke('#ffc1ff ');
1150
+ * stroke('#d41159 ');
1099
1151
* line(75, 25, 25, 75);
1100
1152
*
1101
- * describe('A faint #c8ffff line and a faint #ffc1ff line form an X on a gray background. The area where they overlap is white.');
1153
+ * describe('A faint #1a85ff line and a faint #d41159 line form an X on a gray background. The area where they overlap is white.');
1102
1154
* }
1103
1155
* </code>
1104
1156
* </div>
@@ -1118,11 +1170,11 @@ p5.prototype.clearDepth = function(depth) {
1118
1170
* // Style the lines.
1119
1171
* strokeWeight(30);
1120
1172
*
1121
- * // Draw the #1a85ff line.
1173
+ * // Draw the blue line.
1122
1174
* stroke('blue');
1123
1175
* line(-25, -25, 25, 25);
1124
1176
*
1125
- * // Draw the #d41159 line.
1177
+ * // Draw the red line.
1126
1178
* stroke('red');
1127
1179
* line(25, -25, -25, 25);
1128
1180
*
0 commit comments