DNA Animation - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3) +---- Forum: Programs (https://staging.qb64phoenix.com/forumdisplay.php?fid=7) +---- Thread: DNA Animation (/showthread.php?tid=703) |
RE: DNA Animation - OldMoses - 08-01-2022 (08-01-2022, 01:03 AM)SierraKen Wrote: Thanks OldMoses. I also started in AppleSoft BASIC in the 80's. Remember HOME instead of CLS? And there was GR and HGR and HGR2 for graphic screens. GR had the regular text at the bottom for a few lines. lol Actually the very first programming I did was in the 7th grade in the brand new computer lab the school got and we did a graphics language called LOGO. With LOGO we did PU PD (pen up, pen down) and the turtle walked in steps drawing your lines. Yep, I remember HOME, although in those days I wasn't enough in the graphics to remember the commands. I also remember PR#6, to load DOS from a boot disk, I typed that one almost every time I sat down at the machine. Applesoft is the only language I can lay any claim to other than QBasic/QB64. In college I tried to get my head around Assembly, even taking a class in it, but never got anything to work right. My Apple ][+ was heisted in college. My father-in-law later gave me an Apple ][ with an Integer Basic card. I gave that to a friend of mine some years later. I still have a ][C in the attic that was my sister's. It still worked the last time I had it out. RE: DNA Animation - Kernelpanic - 08-01-2022 Amazing how many people started with Apple Basic. This was my first computer book: RE: DNA Animation - OldMoses - 08-02-2022 (07-31-2022, 11:10 PM)bplus Wrote: I wondered if someone would resort to sorting. I've been looking at that sorting routine and thought I could improve upon it. While it's still a basic bubble sort, it now works directly with the ball array _MEM block and takes advantage of the fact that I tend not to use OPTION BASE 1, but program arrays as if I do. It leaves me with the unused 0 element as a swapping buffer. The downside is that it added a bit of mindnumbing _MEM**** code, but the upside is that it eliminated two full array iterations and the "sort" UDT. Doesn't really change the visual presentation, but I added some random ball colors and keydown "r" rotation reverser. Code: (Select All) 'DNA Animation by SierraKen RE: DNA Animation - James D Jarvis - 08-02-2022 There should just be 4 colors. RE: DNA Animation - bplus - 08-02-2022 Yah, 4 colors for 4 amino acids A-T, C-G only 2 bonds... @OldMoses, QSort AKA Quick Sort (seems perfect for a QB language) best general sorter, might not need Mem though probably even faster with... RE: DNA Animation - SierraKen - 08-02-2022 Very cool OldMoses! RE: DNA Animation - OldMoses - 08-02-2022 (08-02-2022, 08:07 PM)SierraKen Wrote: Very cool OldMoses! Thank you, and thank you for DNA Animation. I'm not much for conceiving things like it myself, being chronically short on imagination, but I have a ....cough..cough "Ball" playing with them when they do come along. I was trying to find a way to link balls of each tier together with line commands, kind of how a DNA strand does, but the lines would just flash every which way or blink in and out and I gave in on that one. Maybe later... It turns out that the Mem_Sorter subroutine works well in the printing routine of my truckload database that I use on our farm at harvest time. So an interesting mental puzzle ended up with a real world application. |