A long time ago, I made a Turtle Language in TI-BASIC. I wanted to port it to C, but ended up getting distracted with some other stuff. Namely, I ended up playing around with palette shifting and simple on-calc control of some turtrles to make some cool looking stuff:


The on-calc program has some turtles doing some things, and you can press buttons to get different designs and stuff. Here are a couple videos from my instagram:

https://www.instagram.com/reel/ChiCLHdlf6P/
https://www.instagram.com/reel/ChiMKhalb8l/

It's like a really fancy spirograph.

In terms of what's cool technically, I make use of palette shifting for some extreme color changes. Here's the (simple and probably not worth copying, but maybe worth learning from) code for palette shaunanigans:
https://github.com/merthsoft/TurtleCE/blob/release/src/palette.h

Source:
https://github.com/merthsoft/TurtleCE
Download:
https://github.com/merthsoft/TurtleCE/releases/tag/release
I made some new gifs to show the discord today, and also went and updated the readme to have controls listed. Here's the pretty:

Spirograph mode


Random walk mode


Taking turns:





Here are the controls:
VARS - see the current settings and palette.
DEL - exit.
CLEAR - clear the screen to black.

Modes:
Mode - Toggle between modes without changing and values
Y= - Spirograph mode, resets,
angle = 9;
speed = 6;
Window - Random walk mode, resets,
angle = 45;
speed = 5;

Colors:
Multiply - Toggle change turtle colors
Divide - Toggle palette shift
Comma - Rainbow palette
Sin - Monochromatic color->black (current color value used as H in HSV, V is spectrum), switches palette direction if already selected
Cos - Monochromatic color->white (current color value used as H in HSV, S is spectrum), switches palette direction if already selected
Tan - Cycles through a spectrum of palettes
Apps - Monochromatic gray, switches palette direction if already selected
Left paren - Subtracts 16 from the main color the palette is built from
Left paren - Adds 16 from the main color the palette is built from

Turtles:
Up - Increase speed
Down - Decrease speed
Left - Decrease angle
Right - Increase angle
0 - Teleport turtles to center
Decimal - Move turtles to random location
1 - Set the turtles color to index 1 of the palette
2 - Give turtles a random color
3 - Spread the palette across the number of turtles
4 - angle = 9; speed = 6;
5 - angle = 60; speed = 20;
6 - angle = 90; speed = 20;
7 - angle = 45; speed = 5;
8 - angle = 180; speed = 10;
9 - angle = 1; speed = 1;
(-) Negative - Give turltles random speed and angle
Plus - Add a turtle
Minus - Remove a turtle
Enter - Pause or Run the turtles

I also changed the repo and executable name to better reflect that it's a spirograph thing.

Github: https://github.com/merthsoft/spirographce
Download: https://github.com/merthsoft/spirographce/releases/tag/release
If TI held an art contest… this would win it
Thanks! I went ahead and uploaded it here at well:
http://ceme.tech/DL2584p
Hmm, that looks like a broken link. All I see are some poor TI-84 Pluses which didn’t deserve to be treated the way they were.
Whoops!
http://ceme.tech/DL2584
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement