y=1.0 - (min(min(1,x+0.75), min(1,1.75-x))-0.75) * 2 for x in 0..1