--- title: "Rotated Ellipse" id: 79505 type: "computer_media" slug: "rotated-ellipse" url: "http://localhost/computer_media/rotated-ellipse/" markdown_url: "http://localhost/computer_media/rotated-ellipse.md" published_at: "2026-11-22T14:40:54+00:00" modified_at: "2026-11-22T14:40:54+00:00" featured_image: url: "http://localhost/wp-content/uploads/2026/11/rotated-ellipse-1.png" excerpt: "Plots a rotated ellipse from its parametric equations on the TS2068." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "TS 2068" slug: "ts2068" taxonomy: "post_tag" url: "http://localhost/tag/ts2068/" 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/" genre: - name: "Mathematics" slug: "mathematics" taxonomy: "genre" url: "http://localhost/type/mathematics/" media_type: "Program" programmers: - name: "Murray Barasch" slug: "murray-barasch" taxonomy: "indiv" url: "http://localhost/indiv/murray-barasch/" - name: "Carolyn Barasch" slug: "carolyn-barasch" taxonomy: "indiv" url: "http://localhost/indiv/carolyn-barasch/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Rotated%20Ellipse%20%281992%29%28Barasch%2C%20Murray%20-%20Barasch%2C%20Carolyn%29%28TS2068%29%28Program%29.zip" tsrun_member: "Rotated Ellipse (1992)(Barasch, Murray - Barasch, Carolyn)(TS2068)(Program)/Rotated Ellipse (1992)(Barasch, Murray - Barasch, Carolyn)(TS2068)(Program).tap" mediadate: "1992" images: - url: "http://localhost/wp-content/uploads/2026/11/rotated-ellipse-1.png" - url: "http://localhost/wp-content/uploads/2026/11/rotated-ellipse-2.png" - url: "http://localhost/wp-content/uploads/2026/11/rotated-ellipse-3.png" article_media: - id: 78333 title: "Looping the 2068" type: "article" url: "http://localhost/article/looping-the-2068-2/" media_type_tags: "Mathematics" license: false --- # Rotated Ellipse A four-line program that plots an ellipse of any size and rotation from its parametric equations. RUN it and enter five values, pressing ENTER after each: the centre X and Y, the half width A, the half height B, and the rotation R in radians (128, 88, 80, 40, 0.5 is a good first try). The whole ellipse has to fit on the 256 by 176 screen. Drawing takes under two minutes. Published in LISTing November 1992 ([Looping the 2068](https://timexsinclair.com/article/looping-the-2068-2/)). ## Source Code ``` 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 ```