Module:ColorParse: Difference between revisions

Jump to navigation Jump to search
20 bytes removed ,  14:55, 20 January 2023
fix bordered shaders
mNo edit summary
(fix bordered shaders)
 
Line 148: Line 148:
       bordered = true
       bordered = true
       overflowbehavior = function(f)
       overflowbehavior = function(f)
         if f + #strtbl == 3 then return colorlist[2] else return colorlist[1] end
         if #strtbl - f == 0 then return colorlist[1] else return colorlist[2] end
         end
         end
     elseif type == 'chaotic' then
     elseif type == 'chaotic' then
Line 155: Line 155:
     local ci = 1
     local ci = 1
     if bordered == true then
     if bordered == true then
       ci = #colorlist
       ci = 1
     end
     end
     for i=1, #strtbl do
     for i=1, #strtbl do
Line 170: Line 170:
       if i%interval == 0 then
       if i%interval == 0 then
           if bordered == true then
           if bordered == true then
               ci = ci - 1
               ci = ci + 1
           else
           else
               ci = ci + 1
               ci = ci + 1
Line 218: Line 218:


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


return p
return p

Navigation menu