Module:ColorParse: Difference between revisions

Jump to navigation Jump to search
5 bytes removed ,  18:44, 25 May 2020
m
no edit summary
(bordered works now)
mNo edit summary
Line 122: Line 122:
     if type == 'alternation' then
     if type == 'alternation' then
         interval = math.floor(#strtbl/#colorlist)  --sets interval that color code switches.
         interval = math.floor(#strtbl/#colorlist)  --sets interval that color code switches.
        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' then
Line 190: Line 191:


function p.test()
function p.test()
    --return applytemplate('structural', 'structural')
     --return p.shader('Stopsvalinn', 'R-r-K-y-Y', 'sequence')
     --return p.shader('Stopsvalinn', 'R-r-K-y-Y', 'sequence')
     return applytemplate('horned', 'horned')
     return applytemplate('soul', 'soulcurding')
end
end


return p
return p

Navigation menu