Skip to content

Commit

Permalink
Update visualizer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hamedmiir authored May 31, 2024
1 parent 4928ac8 commit def34bc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions visualizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ function windowResized() {
/**
* Draw the visualizer, which reacts to the audio input and other environmental factors.
*/
function draw() {
background(0);

// Draw video as background with transparency
tint(255, 150);

function draw() {
// Adjust visuals based on battery level
let batteryColor = color(map(batteryLevel, 0, 1, 0, 255), 0, 255);

Expand Down

0 comments on commit def34bc

Please sign in to comment.