cleari() setSpeed(fast) val cb= canvasBounds val clr = cm.linearGradient( cb.x,cb.y,red, cb.x + cb.width,cb.y+cb.height, pink, ) setBackground(clr)