From 0432b4e4f1e1b55f852a7839efdfb0f74ef0a179 Mon Sep 17 00:00:00 2001 From: Wolfgang Nowak Date: Sun, 19 Nov 2023 17:59:57 +0100 Subject: [PATCH] Some more content concerning the added parabel funktions --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 16fb308..abcb392 100644 --- a/README.md +++ b/README.md @@ -26,4 +26,23 @@ and returns a list of x and y coordinates: [x1,y1,x2,y2....] like the following The parameter cow is not useless, it can be set to any singlebyte ASCII string like "*" or some doublespaced UTF8 char like "🐄". If it is a singlechar in ASCII, which is the default, the curve will be calculated with singlesteps, if ist is a UTF8-String, each step will be 2 points, because we now know, we have a textmode display and doublewidth chars. +``` + # X-Resolution of the display + + xmax = 100 + ymax = 40 + ymin = 0 + xmin = 0 + startwinkel = 34 + startgeschwindigkeit = 31 + starthoehe = 0 + +ergebnis = berechneflugbahn(cow, xmin, xmax, ymin, ymax, startwinkel, startgeschwindigkeit, starthoehe) + +for count in range(xmin, len(ergebnis), 2): + x, y = ergebnis[count], ergebnis[count + 1] + curpos(x, y) + print(cow, end="") + +```