Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+9 votes

I tried to make trees but they are really weird to look at.

asked in CSC 150 January201920 by (1 point)
+1

Good question

1 Answer

+5 votes

try this code

to setup
 create-ordered-leaves 5 [
    set size 6
    setxyz 0 0 -10
    set color brown
    set shape "leaf"
    tilt-up 90
  ]
end
to go
  ask leaves [
    set color 72
    pd
    set pen-size size + 1
    fd size
    set size size * 0.8
    left 20 + random 20

    tilt-up 10
    hatch 1 [
      right 40 + random 40

      tilt-down 10
    ]
  ]
end

and click on go as many times as you want

answered by (1 point)
edited by
+2

Thank you

...