Results 2 issues of Mahdi Torabi Rad

Thanks for the nice tutorial. Could you comment on where the line "slid.grad = slid.value * (1-slid.value)" is coming from?