I need a code that will draw something that looks like this (on a TI-84+CE)
https://www.artyfactory.com/isometric-drawing/images/large-isometric-cube.gif

Requirements:
- Each tiny cube should be drawn individually, and overlay cubes behind it if necessary.
- The number of tiny cubes should be able to be changed easily.
- Must be written entirely in TI-Basic
This probably isn't exactly what you're asking for, but I made something similar today if you want to check out this post: https://www.cemetech.net/forum/viewtopic.php?p=285977#285977

If you have questions, I'm happy to help
Oh my gosh. That looks so epic! It isn't what I was looking for though, but I was actually able to figure out how to do it myself. The answer was right in front of me the whole time. XD But thanks anyway!

Edit: If you want to see what I came up with:
http://tibasicdev.wikidot.com/forum/t-13382503/isometric-cube#post-4666229
Here's something I wrote for my TI84+CE. Give it a Length, Width, Height, and a step value. To start just do 4,4,4,1 . This changes the Window Xmin, Xmax, Ymin, Ymax values so change them back to what you want. After drawing, the program will pause and wait for you to press enter to re-enter new values. You can change the Window values if you want to draw larger than 10,10,10 .



Code:

­~80→Xmin
80→Xmax
0→Ymin
100→Ymax
Lbl Z:ClrHome
Input "LENGTH ",L
Input "WIDTH  ",W
Input "HEIGTH ",H
Input "STEP   ",S
ClrDraw
Line(0,0,0,0
For(D,1,L,S
For(B,1,W,S
For(C,1,H,S
B*5-D*5→X
C*5+45-2.4*B-2.4*D→Y
For(A,0,5
Line(X,Y+A,X+5,Y+2.4+A,GREEN
Line(X,Y+A,X-5,Y+2.4+A,GREEN
Line(X+5,Y+7.4,X,Y+5+A,GREEN
Line(X-5,Y+7.4,X,Y+5+A,GREEN
End
Line(X+5,Y+2.4,X+5,Y+7.4,BLACK
Line(X-5,Y+2.4,X-5,Y+7.4,BLACK
Line(X,Y,X+5,Y+2.4,BLACK
Line(X,Y,X-5,Y+2.4,BLACK
Line(X+5,Y+7.4,X,Y+5,BLACK
Line(X-5,Y+7.4,X,Y+5,BLACK
Line(X,Y,X,Y+5,BLACK
Line(X+5,Y+7.4,X,Y+10,BLACK
Line(X-5,Y+7.4,X,Y+10,BLACK
End:End:End
Text(1,1,"PRESS   ENTER"
Pause :Goto Z
That's really cool, I'd be willing to bet you could optimize that a lot though. Since it's a cube you could probably easily calculate the blocks you don't have to draw in the back.
Here's the code I wrote first. It draws the cube faster because it just draws the outside without drawing the individual cubes.


Code:

­~40→Xmin:40→Xmax
0→Ymin:64→Ymax
Lbl Z:ClrHome
Input "LENGTH ",L
Input "WIDTH  ",W
Input "HEIGHT ",H
ClrDraw
For(A,0,L
Line(A*2,A,A*2,H*2.5+A,RED
Line(A*2,H*2.5+A,­W*2+A*2,H*2.5+W+A,RED
End
For(A,0,W
Line(­A*2,A,­A*2,H*2.5+A,RED
Line(­A*2,H*2.5+A,­A*2+L*2,H*2.5+A+L,RED
End
For(A,0,H
Line(0,A*2.5,L*2,A*2.5+L,RED
Line(0,A*2.5,­W*2,A*2.5+W,RED
End:Pause :Goto Z
  
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