New answers tagged

0

a quick working wrapper for OpenGL from R: require(rgl) tr.points <- matrix(c(1,0,0, cos(60/180*pi),sin(60/180*pi),0, 0,0,0), ncol=3, byrow=TRUE) triangles3d(tr.points, col=c('red', 'green', 'blue'), lit=FALSE, smooth=TRUE, textype='rgb', lwd=1.0, depth_mask=TRUE, depth_test='always') rgl.viewpoint(...


1

Most 2D graphics programs are able to do linear gradients with arbitrary orientations. If you don't mind a little work, it is possible to set this up to imitate the 2D linear interpolation across a triangle. Set up two layers: Pick two of the colors, say red and green, and set up a linear gradient between those two colors along the red-green edge. In a ...


Top 50 recent answers are included