Skip to content

Commit

Permalink
revert trivial changes
Browse files Browse the repository at this point in the history
  • Loading branch information
an-prata committed Jan 26, 2023
1 parent 835da12 commit ef74b12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/miniplayer
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/bin/python
import curses
import os
from mpd import MPDClient, CommandError
Expand Down Expand Up @@ -205,6 +205,7 @@ class Player:
# Color initialisation
self.AUTO_COLOR = curses.COLOR_WHITE
self.SECONDARY_COLOR = curses.COLOR_WHITE + 1


# Figure out which pairs we need to auto color and secondary color
self.auto_pairs = []
Expand Down Expand Up @@ -387,14 +388,13 @@ class Player:
else:
return math.sqrt(brightness**2 * saturation)


def weight(x):
"""
A weight function to transform the color scores based
on their frequency
"""
return 1/(x+1)**2


# Init thief and get palette
try:
Expand Down

0 comments on commit ef74b12

Please sign in to comment.