replace code.google.com links with updated github urls

This commit is contained in:
Ben Fry
2022-07-31 15:45:23 -04:00
parent 3699c713d1
commit 3c6122ebeb
11 changed files with 28 additions and 28 deletions
+12 -12
View File
@@ -174,7 +174,7 @@ public class PGraphicsJava2D extends PGraphics {
if (useOffscreen) {
// Needs to be RGB otherwise there's a major performance hit [0204]
// http://code.google.com/p/processing/issues/detail?id=729
// https://github.com/processing/processing/issues/768
image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
// GraphicsConfiguration gc = parent.getGraphicsConfiguration();
// image = gc.createCompatibleImage(width, height);
@@ -575,7 +575,7 @@ public class PGraphicsJava2D extends PGraphics {
super.hint(which);
// Avoid badness when drawing shorter strokes.
// http://code.google.com/p/processing/issues/detail?id=1068
// https://github.com/processing/processing/issues/1106
// Unfortunately cannot always be enabled, because it makes the
// stroke in many standard Processing examples really gross.
if (which == ENABLE_STROKE_PURE) {
@@ -960,11 +960,11 @@ public class PGraphicsJava2D extends PGraphics {
/**
*
* Blends the pixels in the display window according to a defined mode.
* There is a choice of the following modes to blend the source pixels (A)
* with the ones of pixels already in the display window (B). Each pixel's
* final color is the result of applying one of the blend modes with each
* channel of (A) and (B) independently. The red channel is compared with
* Blends the pixels in the display window according to a defined mode.
* There is a choice of the following modes to blend the source pixels (A)
* with the ones of pixels already in the display window (B). Each pixel's
* final color is the result of applying one of the blend modes with each
* channel of (A) and (B) independently. The red channel is compared with
* red, green with green, and blue with blue.<br />
* <br />
* BLEND - linear interpolation of colors: C = A*factor + B. This is the default.<br />
@@ -987,11 +987,11 @@ public class PGraphicsJava2D extends PGraphics {
* <br />
* REPLACE - the pixels entirely replace the others and don't utilize alpha (transparency) values<br />
* <br />
* We recommend using <b>blendMode()</b> and not the previous <b>blend()</b>
* function. However, unlike <b>blend()</b>, the <b>blendMode()</b> function
* does not support the following: HARD_LIGHT, SOFT_LIGHT, OVERLAY, DODGE,
* BURN. On older hardware, the LIGHTEST, DARKEST, and DIFFERENCE modes might
* not be available as well.
* We recommend using <b>blendMode()</b> and not the previous <b>blend()</b>
* function. However, unlike <b>blend()</b>, the <b>blendMode()</b> function
* does not support the following: HARD_LIGHT, SOFT_LIGHT, OVERLAY, DODGE,
* BURN. On older hardware, the LIGHTEST, DARKEST, and DIFFERENCE modes might
* not be available as well.
*
*
* @webref Rendering
+3 -3
View File
@@ -150,11 +150,11 @@ public class PSurfaceAWT extends PSurfaceNone {
// // request focus for its canvas inside beginDraw().
// // http://java.sun.com/j2se/1.4.2/docs/api/java/awt/doc-files/FocusSpec.html
// // Disabling for 0185, because it causes an assertion failure on OS X
// // http://code.google.com/p/processing/issues/detail?id=258
// // https://github.com/processing/processing/issues/297
// // requestFocus();
//
// // Changing to this version for 0187
// // http://code.google.com/p/processing/issues/detail?id=279
// // https://github.com/processing/processing/issues/318
// //requestFocusInWindow();
//
// // For 3.0, just call this directly on the Canvas object
@@ -441,7 +441,7 @@ public class PSurfaceAWT extends PSurfaceNone {
//frame.validate();
// disabling resize has to happen after pack() to avoid apparent Apple bug
// http://code.google.com/p/processing/issues/detail?id=467
// https://github.com/processing/processing/issues/506
frame.setResizable(false);
frame.addWindowListener(new WindowAdapter() {
+1 -1
View File
@@ -2038,7 +2038,7 @@ public class PApplet implements PConstants {
(e instanceof IllegalAccessException)) {
if (e.getMessage().contains("cannot be <= 0")) {
// IllegalArgumentException will be thrown if w/h is <= 0
// http://code.google.com/p/processing/issues/detail?id=983
// https://github.com/processing/processing/issues/1021
throw new RuntimeException(e);
} else {
+1 -1
View File
@@ -2752,7 +2752,7 @@ public class PGraphics extends PImage implements PConstants {
// Still need to do a lot of work here to make it behave across renderers
// (e.g. not all renderers use the vertices array)
// Also seems to be some issues on quality here (too dense)
// http://code.google.com/p/processing/issues/detail?id=265
// https://github.com/processing/processing/issues/304
// private void quadraticVertex(float cpx, float cpy, float x, float y) {
// float[] prev = vertices[vertexCount - 1];
// float prevX = prev[X];
+1 -1
View File
@@ -863,7 +863,7 @@ public class PShapeSVG extends PShape {
case 'z':
// since closing the path, the 'current' point needs
// to return back to the last moveto location.
// http://code.google.com/p/processing/issues/detail?id=1058
// https://github.com/processing/processing/issues/1096
cx = movetoX;
cy = movetoY;
close = true;
+2 -2
View File
@@ -979,13 +979,13 @@ public class PVector implements Serializable {
// This should be a number between -1 and 1, since it's "normalized"
double amt = dot / (v1mag * v2mag);
// But if it's not due to rounding error, then we need to fix it
// http://code.google.com/p/processing/issues/detail?id=340
// https://github.com/processing/processing/issues/379
// Otherwise if outside the range, acos() will return NaN
// http://www.cppreference.com/wiki/c/math/acos
if (amt <= -1) {
return PConstants.PI;
} else if (amt >= 1) {
// http://code.google.com/p/processing/issues/detail?id=435
// https://github.com/processing/processing/issues/474
return 0;
}
return (float) Math.acos(amt);