Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Python by Yushatak ( 15 years ago )
def interpolate(array,x,y):
value=get(array,x,y)
valueTL=get(array,x-1,y-1)
valueL=get(array,x-1,y)
valueBL=get(array,x-1,y+1)
valueT=get(array,x,y-1)
valueTR=get(array,x+1,y-1)
valueR=get(array,x+1,y)
valueBR=get(array,x+1,y+1)
valueB=get(array,x,y+1)
num=average(value,valueTL)
num=average(num,valueT)
num=average(num,valueTR)
num=average(num,valueR)
num=average(num,valueBR)
num=average(num,valueB)
num=average(num,valueBL)
num=average(num,valueL)
put(array,x,y,num)
Revise this Paste