Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1 @@
;install each cut 'gl2 gles github:zerowords/tgsjo'

View file

@ -0,0 +1,58 @@
load'zerowords/tgsjo'
rotR 0 0 _90
translate 0 0 _40
clearscreen ''
createTurtle 0 0 0
rectangle=: {{
2 repeats {{ 'width height'=. y
forward height
left 90
forward width
left 90 }} y
}}
square=: {{size=. y
rectangle size,size
}}
triangle=:{{
3 repeats {{size=. y
forward size
right 120}} y
}}
house=:{{size=. y
left 90
square size
triangle size
right 90
}}
barchart=: {{'lst size'=. y
if.#lst do.
scale=. size%>./lst
width=. size%#lst
right 90
for_j. lst do.
rectangle (j * scale),width
forward width
end.
back size
left 90
end.
}}
penColor Red
house 150
pen 0
right 90
forward 10
left 90
pen 1 [ penColor Blue
barchart 0.5 0.3333 2 1.3 0.5; 200
pen 0
left 90
forward 10
left 270
pen 1