mirror of
https://github.com/Alvin-Zilverstand/novatorem.git
synced 2026-03-06 13:24:56 +01:00
Change mail provider to custom built one
Give Kudos in README Update eq if currently listening to or not Preview spotify logo Add header Give room for header change color of status for contrast Update currentStatus Test height proporty change colors + margin Add gradient to eq Add background to bars Give transparency fill to bars Re-add background to bars to evaluate interactions Fix background for all bars to apply gradients Fix syntax error Zoom in background for gradient scroll Slow animation of gradient Set gradient animation to run first, then sound Modify zoom of bar background absolute bar travel time remove alternate animation for bars uncenter start background position remove sound animation for debug Zoom out background remove random.radient Remove debug Only randomize sound animation duration Speed up and add more bars Actually speed them up ZOOOOOM change bar animation to ease Slow down bar speeds Update README.md set bar animation to ease-out Set bars to ease in Speed up gradient animation Speed up gradient animation Get only last played song if not listening Fix syntax error on itemIndex declaration Generate random bezier for bar animations Expand speed window for bars Pan time window to favor fast add preview and prepare for PR Add preview and prepare for PR change preview.mp4 to .gif
This commit is contained in:
@@ -75,10 +75,15 @@ def barGen(barCount):
|
||||
barCSS = ""
|
||||
left = 1
|
||||
for i in range(1, barCount + 1):
|
||||
anim = random.randint(1000, 1350)
|
||||
anim = random.randint(500, 1000)
|
||||
# below code generates random cubic-bezier values
|
||||
x1 = random.random()
|
||||
y1 = random.random()*2
|
||||
x2 = random.random()
|
||||
y2 = random.random()*2
|
||||
barCSS += (
|
||||
".bar:nth-child({}) {{ left: {}px; animation-duration: {}ms; }}".format(
|
||||
i, left, anim
|
||||
".bar:nth-child({}) {{ left: {}px; animation-duration: 15s, {}ms; animation-timing-function: ease, cubic-bezier({},{},{},{}); }}".format(
|
||||
i, left, anim, x1, y1, x2, y2
|
||||
)
|
||||
)
|
||||
left += 4
|
||||
@@ -106,8 +111,8 @@ def makeSVG(data, background_color, border_color):
|
||||
barCSS = barGen(barCount)
|
||||
|
||||
if data == {} or data["item"] == "None" or data["item"] is None:
|
||||
# contentBar = "" #Shows/Hides the EQ bar if no song is currently playing
|
||||
currentStatus = "Was playing:"
|
||||
#contentBar = "" #Shows/Hides the EQ bar if no song is currently playing
|
||||
currentStatus = "Recently played:"
|
||||
recentPlays = recentlyPlayed()
|
||||
recentPlaysLength = len(recentPlays["items"])
|
||||
itemIndex = random.randint(0, recentPlaysLength - 1)
|
||||
|
||||
Reference in New Issue
Block a user