X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TestPatterns.pde;h=4c7899591a88e50bf338d2cf5b827c02509ce5fc;hb=190d91c2948b274a2dbaf4ec07450b4ebf2feece;hp=2f04698a5c9d30c9874cb22c8b07bafd16928553;hpb=4214e9a2908a28344f1e90f98a645ebc2efa0fae;p=SugarCubes.git diff --git a/TestPatterns.pde b/TestPatterns.pde index 2f04698..4c78995 100644 --- a/TestPatterns.pde +++ b/TestPatterns.pde @@ -140,7 +140,7 @@ class TestXPattern extends TestPattern { // You can use abs() to determine the distance between two // values. The further away this point is from an exact // point, the more we decrease its brightness - float bv = max(0, 100 - abs(p.fx - xPos.getValuef())); + float bv = max(0, 100 - abs(p.x - xPos.getValuef())); colors[p.index] = color(hv, 100, bv); } } @@ -158,7 +158,7 @@ class TestYPattern extends TestPattern { public void run(double deltaMs) { float hv = lx.getBaseHuef(); for (Point p : model.points) { - float bv = max(0, 100 - abs(p.fy - yPos.getValuef())); + float bv = max(0, 100 - abs(p.y - yPos.getValuef())); colors[p.index] = color(hv, 100, bv); } } @@ -176,7 +176,7 @@ class TestZPattern extends TestPattern { public void run(double deltaMs) { float hv = lx.getBaseHuef(); for (Point p : model.points) { - float bv = max(0, 100 - abs(p.fz - zPos.getValuef())); + float bv = max(0, 100 - abs(p.z - zPos.getValuef())); colors[p.index] = color(hv, 100, bv); } }