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="") + +```