Realisation of Mach bands optical illusion, using Javascript Canvas