Skip to content

Commit

Permalink
clarity for posterity
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 14, 2018
1 parent df7c12b commit 5c0fed2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Themes/Til Death/BGAnimations/_chorddensitygraph.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
local cdg

-- hurrrrr nps quadzapalooza -mina
local imcrazy = 500
local wodth = capWideScale(280, 300)
local hidth = 40
local txtoff = 10
Expand Down Expand Up @@ -49,7 +48,7 @@ local function updateGraphMultiVertex(parent, realgraph)
end

local npsVector = graphVectors[1] -- refers to the cps vector for 1 (tap notes)
local numberOfColumns = math.min(imcrazy,#npsVector)
local numberOfColumns = #npsVector
local columnWidth = wodth/numberOfColumns

-- set height scale of graph relative to the max nps
Expand All @@ -66,13 +65,11 @@ local function updateGraphMultiVertex(parent, realgraph)
local verts = {} -- reset the vertices for the graph
local yOffset = 0 -- completely unnecessary, just a Y offset from the graph
for density = 1,4 do
for column = 1,imcrazy do
if column <= numberOfColumns then
for column = 1,numberOfColumns do
if graphVectors[density][column] > 0 then
local barColor = getColorForDensity(density)
makeABar(verts, column * columnWidth, yOffset, columnWidth, graphVectors[density][column] * 2 * hodth, barColor)
end
end
end
end

Expand Down

0 comments on commit 5c0fed2

Please sign in to comment.