--- title: "Looping the 2068" type: "article" slug: "looping-the-2068-2" url: "http://localhost/article/looping-the-2068-2/" markdown_url: "http://localhost/article/looping-the-2068-2.md" published_at: "2026-11-21T22:03:45+00:00" modified_at: "2026-11-22T14:40:54+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Here's our program to draw (on the 2068) an ellipse with center at X,Y; semi-major axis (half width) A; semi-minor axis (half height) B; rotated from the horizontal by angle R (radians, not degrees). 10 INPUT \"INPUT X,Y,A,B,R\"'X'Y'A'B'R 20 FOR T=0 TO 2*PI STEP .05 30 PLOT X+A*COS T*COS R-B*SIN T*SIN R,Y+A*COS T*SIN R+B*SIN T*COS…" post_tag: - name: "Full Text" slug: "fulltext" taxonomy: "post_tag" url: "http://localhost/tag/fulltext/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Carolyn Barasch" slug: "carolyn-barasch" taxonomy: "indiv" url: "http://localhost/indiv/carolyn-barasch/" - name: "Murray Barasch" slug: "murray-barasch" taxonomy: "indiv" url: "http://localhost/indiv/murray-barasch/" publication_r: id: 38992 title: "LISTing Newsletter" type: "periodical" url: "http://localhost/periodical/listing-newsletter/" authors: "Murray Barasch; Caroline Barasch" issues_articles: - id: 40201 title: "LISTing Newsletter November 1992" type: "issue" url: "http://localhost/issue/listing-newsletter-november-1992/" pages: "4" pubdate: "November 1992" archive_link: false article_media: - id: 79505 title: "Rotated Ellipse" type: "computer_media" url: "http://localhost/computer_media/rotated-ellipse/" --- # Looping the 2068 Here’s our program to draw (on the 2068) an ellipse with center at X,Y; semi-major axis (half width) A; semi-minor axis (half height) B; rotated from the horizontal by angle R (radians, not degrees). ``` 10 INPUT "INPUT X,Y,A,B,R"'X'Y'A'B'R 20 FOR T=0 TO 2*PI STEP .05 30 PLOT X+A*COS T*COS R-B*SIN T*SIN R,Y+A*COS T*SIN R+B*SIN T*COS R 40 NEXT T ``` This was based on parametric equations for the ellipse, modified by rotation through angle R and translated to a new center. ### Editor’s Note The INPUT statement on the 2068 is almost as flexible as the PRINT. With multiple entries in a single INPUT, you’ll have to press ENTER after each variable. To convert to the 1000, just put in seperate INPUT statements, and remember to keep the numbers smaller. ## Source Code: Rotated Ellipse ``` 10 INPUT "INPUT X,Y,A,B,R"'X'Y'A'B'R 20 FOR T=0 TO 2*PI STEP .05 30 PLOT X+A*COS T*COS R-B*SIN T*SIN R,Y+A*COS T*SIN R+B*SIN T*COS R 40 NEXT T ```