" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2025 KUDO.TIPS - All rights reserved.
to piramidaa :x
if :x=0 [stop]
repeat :x [repeat 4 [fd 50 rt 90] rt 90 fd 50 lt 90]
rt 90 bk :x*50 lt 90 fd 50 rt 90 fd 25 lt 90
piramidaa :x-1
End
2.piramida z trójkatów
to piramidab :x
if :x=0 [stop]
repeat :x [rt 30 repeat 3 [fd 50 rt 120] rt 60 fd 50 lt 90]
rt 90 bk :x*50 lt 60 fd 50 lt 30
piramidab :x-1
End
Nie wiem gdzie wstawić parametr :y (co z nim zrobić)żeby rysować piramidę z kwadratów (:y=1) LUB trójktów (:y=2).Proszę o pomoc. Dziękuje.