VOXEDIT: fixed similarcolor script

master
Martin Gerhardy 2020-09-02 21:23:18 +02:00
parent ec9388e283
commit 2507d138a8
1 changed files with 1 additions and 2 deletions

View File

@ -10,8 +10,7 @@ end
function main(volume, region, color, density, colors)
local cnt = 0
-- TODO: find similar colors and put them into the newindices
local newindices = {5, 6, 7, 8, 9}
local newindices = palette.similar(color, colors)
local visitor = function (volume, x, y, z)
local indidx = math.random(1, #newindices)
local c = newindices[indidx]