Bridget Riley - Turn

Saw Riley's working sketch for this piece and it made me want to cook up something similar. The corners of the quadrilaterals are parameterized between bottom left BL, TL, TR and BR. p(x) controls the row heights. This version has Riley's checkerboard formatting - definitely better.
Image