Got gradient working, first parameter should be box instead of RGBA.