INTERNECION
it just uses processing js drawing tools
function grassBlade(x,y,l,w,c,t,cattail){
var pSeg = [[x,y]];
stroke(2,112,0);
strokeWeight(2);
for(var d = 0; d < l; d++){
if(complexGrass === true){
stroke(c);
strokeWeight(t);
}
if(cattail){
if(cattail[0] === true){
if(d === l-1){
stroke(cattail[1]);
strokeWeight(cattail[2]);
}
}
}
var yd = sqrt(pow(-3,2)+pow(w+(d)*(w/2),2));
var gInvert = 0;
pSeg.push([(pSeg[pSeg.length-1][0]+w)+(d)*(w/2),(pSeg[pSeg.length-1][1]-9+yd)]);
line(pSeg[pSeg.length-2][0],pSeg[pSeg.length-2][1],pSeg[pSeg.length-1][0],pSeg[pSeg.length-1][1]);
}
}