rollke
February 20, 2020, 1:59pm
1
Hi, here an example for drawing with functions for relative lines.
The link for an iterative solution:
https://x.thunkable.com/copy/79ef85ce0f871fa1ee33e79f7a70cc4d
and a recursive solution:
https://x.thunkable.com/copy/fd2e0aca0b6d9757d1919a3d12cefeaa
have fun!
3 Likes
jared
February 20, 2020, 2:14pm
2
This is cool, but I don’t understand what it’s for! Can you explain a use case for something like this?
rollke
February 20, 2020, 2:26pm
3
Just for fun
Useful for Drawing lines with relative/absolute movement and relative/absolute turning. Like the old “turtle graphics”.
1 Like
jared
February 20, 2020, 2:29pm
4
This makes me remember. When I was young I started programming when DOS was still the thing people used. I drew a tree and apple using code like this. The Apple fell from the tree. When you clicked the space bar. That’s it. Lol. Pretty basic.
Good work!!
1 Like
This is awesome!
It too reminds me of a memory , When I used to create random spirals in MSW Logo in 3rd grade
Thanks, @rollke !
2 Likes
rollke
February 20, 2020, 2:43pm
6
Yes, the good old LOGO programming language…
3 Likes
Chris
February 20, 2020, 9:34pm
7
When you press start few times a little faster it will completely mess up - I think this is a Thunkable bug… maybe the speed of the calculations is too slow or idk what causes this failure
Best, Chris
1 Like
rollke
February 20, 2020, 9:56pm
8
2 Likes
rollke
February 20, 2020, 10:04pm
9
Really, calculation and drawing seems to be rather slow.
So we have to wait with next operations until drawing is done.
By the way: In other projects with many calculations thunkable apps are also rather slow.
2 Likes
jared
February 20, 2020, 11:13pm
10
The slowdown occurs Especially when the calculations involve pulling numbers from lists stored in app/stored variableA. A known bug.
1 Like