i modified the old geoglasses code to work with openglasses 2. the code is as follows:
local com=require("component")
local arg={...}
local glass=com.glasses
glass.removeAll()
local geo=com.geolyzer
local size=tonumber(arg[2]) or 16
local pl=tonumber(arg[1] or 3)
local minpl = 2
local maxpl = 5
local maxY
if (tonumber(arg[3]) or 0)==0 then maxY=1 else maxY=size end
local function tocolor(pl)
local color = (pl-minpl)/maxpl
if color<0 then
return {1,1,1}
elseif color>1 then
return {1,0,1}
else
return {color,1-color,0}
end
end
function create(x,y,z,p)
local