Upload index.html
Browse files- index.html +4 -1
index.html
CHANGED
|
@@ -738,7 +738,10 @@ class Fish {
|
|
| 738 |
c.scale(1, Math.max(0.42, Math.cos(this.roll)));
|
| 739 |
c.rotate(this.roll * 0.1);
|
| 740 |
}
|
| 741 |
-
|
|
|
|
|
|
|
|
|
|
| 742 |
// pectoral fin (flapping)
|
| 743 |
const flap = Math.sin(this.phase * 1.3) * 0.45;
|
| 744 |
c.save();
|
|
|
|
| 738 |
c.scale(1, Math.max(0.42, Math.cos(this.roll)));
|
| 739 |
c.rotate(this.roll * 0.1);
|
| 740 |
}
|
| 741 |
+
|
| 742 |
+
// v20: render the pectoral fins at 50% opacity
|
| 743 |
+
c.globalAlpha = 0.5;
|
| 744 |
+
|
| 745 |
// pectoral fin (flapping)
|
| 746 |
const flap = Math.sin(this.phase * 1.3) * 0.45;
|
| 747 |
c.save();
|