Skip to content

Commit

Permalink
Fixed multi-pointer demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ydaniv committed Nov 25, 2024
1 parent 6952788 commit ae8f862
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/multi-pointer.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ class PointerTexture {
}
intensity *= point.speed;

const red = (1 + point.vx) / 2 * 255;
const green = (1 - point.vy) / 2 * 255;
const red = (1 - point.vx) / 2 * 255;
const green = (1 + point.vy) / 2 * 255;
const blue = intensity * 255;

const offset = this.width * 5;
Expand Down

0 comments on commit ae8f862

Please sign in to comment.