Subversion Repositories eduke32

Rev

Rev 4242 | Rev 4262 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4242 Rev 4256
Line 36... Line 36...
36
36
37
local shtab_methods = {
37
local shtab_methods = {
38
    -- Remap consecutive blocks of 16 color indices and return this new shade
38
    -- Remap consecutive blocks of 16 color indices and return this new shade
39
    -- table.
39
    -- table.
40
    --
40
    --
41
    -- <idxs16>: table with idxs16[1] .. idxs16[16] >= 1 and <= 16
41
    -- <idxs16>: table with idxs16[0] .. idxs16[15] >= 0 and <= 15
42
    --  (i.e. 1-based indices of such 16-tuples)
42
    --  (i.e. 0-based indices of such 16-tuples)
43
    --
43
    --
44
    -- For example, the table
44
    -- For example, the table
45
    --  { [0]=0,1, 2,3, 5,4, 6,7, 8,13, 10,11, 12,9, 14,15 }
45
    --  { [0]=0,1, 2,3, 5,4, 6,7, 8,13, 10,11, 12,9, 14,15 }
46
    -- TODO (...)
46
    -- TODO (...)
47
    remap16 = function(sht, idxs16)
47
    remap16 = function(sht, idxs16)