2D polygon gradient code + document