Alright I have been looking at my stuff now and I will need to make some changes but it seems to be ok. Thank you for your help already.
I have a completely different question now, is it possible if I for example have 3 certain points that form a triangle to colour the inside of it but that are only made out of line functions.
like this
line(359,5,362,10);
line(362,10,358,15);
line(358,15,359,5);
since the fill function does not work for it...
is there any way ?
thank you!!
kind regards
!!!!!
edit:
ok I am also facing a new problem ^^
I would like to draw a leaf from a tree and I have all the values from the edges in a row in a ascii file so lets say I have all the x values(all left and all right) in a row and all the y values in a row.
so for example
line (data1 first value, data2 first value, data 1 second value, data 2 second value);
line(data1 second value, data 2 second value, data 1 third value, data 2 third value);
and so on
do you know how I could program that?
I dont know how I can tell processing to use the certain number at the certain point.
I could do it manually but I have many ascii files and this would take too long. So I would like to have one version with the variables (data1 first value, data 2 first value......) and then just change the ascii files later on.
but the colour example is still important as well.
So if you could help me one more time I would be really grateful!!
I think this would be the last time as well ^
^
thank you!!
kind regards