Module:ColorParse: Difference between revisions

19 bytes added ,  17:54, 17 July 2020
hacky solid implementation
mNo edit summary
(hacky solid implementation)
Line 124: Line 124:
         if interval <= 0 then interval = 1 end
         if interval <= 0 then interval = 1 end
         overflowbehavior = function(f) return colorlist[#colorlist] end
         overflowbehavior = function(f) return colorlist[#colorlist] end
     elseif type == 'sequence' then
     elseif type == 'sequence' or type == 'solid' then
         overflowbehavior = function(f)  
         overflowbehavior = function(f)  
         local e = f%#colorlist
         local e = f%#colorlist