Hi! Has anyone used the Terrapin library for a logo-like turtle ?
I have made some drawing with it that I would like to insert into another drawing (also done in Processing). My problem is that some kind of opaque background covers the intial drawing. Any idea what I must do ?? I have read stuff about PGraphics to get a transparent background (using the alpha parameter) but I'm afraid I do not fully understand how to get it to work. (I am not familiar with graphics programming)
Here is a copy of the drawings, before and after inserting the second drawing done with the Terrapin library.
Can anyone tell me why I get computing errors. For example I write "3 / 2 * longueur" (longueur being 80), and the result I get is 80 instead of 120 !! Results of the println =
3 / 2 * longueur = 80.0
2 * longueur = 160.0
(- 3 / 2 * longueur = -80.0
5 / 2 * longueur = 160.0
11 / 4 * longueur = 160.0
3 / 2 * 80 = 80
:
I have tried with and without parentheses, but no change! It does nor seem to be able to divide !!
I have made a pentagon. When I draw it on its own, I can see it. When I put it inside a for loop it disappears. Anything I have not understood ? I have tried to translate the sketch in different ways, and still nothing shows.
I may be quite silly, but I fail to grasp how the translate() function really works.
I thought l could move shapes by x or by y or both if I modify both parameters; my problem is that if I move y both x and y are affected.and the same if I move only x !