Some more content concerning the added parabel funktions
This commit is contained in:
parent
8a3c1847ee
commit
0432b4e4f1
1 changed files with 19 additions and 0 deletions
19
README.md
19
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="")
|
||||
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue