Skip to content

Commit a9a9f8d

Browse files
author
Scott Murray
committed
Added related links to lerp() and PVector.lerp()
1 parent 3ee9f9a commit a9a9f8d

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

core/src/processing/core/PApplet.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5261,6 +5261,8 @@ static public final float dist(float x1, float y1, float z1,
52615261
* @param amt float between 0.0 and 1.0
52625262
* @see PGraphics#curvePoint(float, float, float, float, float)
52635263
* @see PGraphics#bezierPoint(float, float, float, float, float)
5264+
* @see PVector#lerp(PVector, float)
5265+
* @see PGraphics#lerpColor(int, int, float)
52645266
*/
52655267
static public final float lerp(float start, float stop, float amt) {
52665268
return start + (stop-start) * amt;
@@ -15334,6 +15336,7 @@ public final float brightness(int rgb) {
1533415336
* @param amt between 0.0 and 1.0
1533515337
* @see PImage#blendColor(int, int, int)
1533615338
* @see PGraphics#color(float, float, float, float)
15339+
* @see PApplet#lerp(float, float, float)
1533715340
*/
1533815341
public int lerpColor(int c1, int c2, float amt) {
1533915342
return g.lerpColor(c1, c2, amt);

core/src/processing/core/PGraphics.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7637,6 +7637,7 @@ public final float brightness(int rgb) {
76377637
* @param amt between 0.0 and 1.0
76387638
* @see PImage#blendColor(int, int, int)
76397639
* @see PGraphics#color(float, float, float, float)
7640+
* @see PApplet#lerp(float, float, float)
76407641
*/
76417642
public int lerpColor(int c1, int c2, float amt) {
76427643
return lerpColor(c1, c2, amt, colorMode);

core/src/processing/core/PVector.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,7 @@ public void rotate(float theta) {
880880
* @brief Linear interpolate the vector to another vector
881881
* @param v the vector to lerp to
882882
* @param amt The amount of interpolation; some value between 0.0 (old vector) and 1.0 (new vector). 0.1 is very near the new vector. 0.5 is halfway in between.
883+
* @see PApplet#lerp(float, float, float)
883884
*/
884885
public void lerp(PVector v, float amt) {
885886
x = PApplet.lerp(x,v.x,amt);

0 commit comments

Comments
 (0)