I want to build a 2d rect (using the function rectanglewell enough for my needs), but with a linearly interpolated color, that is, at the bottom it should be red, in the top blue and there should be a linear interpolation of the two colors between the two. How can i do this?
rectangle
A patch is the answer. In fact, you can use it on any polygon patch.
patch([0 0 1 1],[0 2 3 0],reshape([0 0 0;1 1 1;0 1 0;1 0 0],4,1,3))
Source: https://habr.com/ru/post/1762134/More articles:JQuery - live ('hover') and mousemove - jqueryREST WCF Authentication - securityhow to detect the presence of silence of a word / sound in a wav file using java? - javaGWT database for server-side data storage - javaДискриминационные союзы и наследование - inheritanceOrganization of domain objects in DDD when using the ado - oop entity infrastructurebinding to my current calibration lead without binding agreement - caliburnasp.net gridview paging - asp.netSpring and Hibernate configuration - springwhen is: visited pseudo-class applied to hyperlink - cssAll Articles