-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
63 lines (46 loc) · 1.97 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html>
<head>
<title>FRHDPython Tools</title>
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/shakrmedia/tuesday@v1.1.0/build/tuesday.min.css">
</head>
<body style="background-color: rgb(17, 55, 41);">
<img class="animated tdStampInSwing" src="./img/FRHD Library.png"><a class="animated tdFadeIn" href="https://github.com/gaetgu/frhd" target="_blank">
<h1 class="animated tdFadeIn">GitHub</h1>
</a>
<hr class="animated tdFadeIn"><a>
<h2 class="animated tdFadeIn">Create a box</h2>
</a>
<p class"animated tdFadeIne" style="color: #E1D3C1;">This library is designed and built for <a href="https://freeriderhd.com" style="color: #E1D3C1;">FreeRiderHD</a>. This library is not associated in any way with Kano Games© or FreeRiderHD.</p>
<p class="animated tdFadeIn" style="color: #E1D3C1;">A short example of the library's usage.</p><pre><code class="language-python">import frhd as fr
my_track = fr.Track.Track()
x1 = -40
x2 = 40
y1 = 40
y2 = 40
type_of_line = input("What kind of block would you like? (s for grey, p for black): ")
if type_of_line == 's':
for x in range(111):
my_track.insLine('s', x1, y1, x2, y2)
y1 -= 1
y2 -= 1
elif type_of_line == 'p':
for x in range(111):
my_track.insLine('p', x1, y1, x2, y2)
y1 -= 1
y2 -= 1
"""Or a more robust version"""
t_o_f = input("What kind of block would you like? (s for grey, p for black): ") # Used a different variable to avoid clashing
if t_o_f == 's' or t_o_f == 'p':
my_track.insLine(t_o_f, x1, y1, x2, y2)
else:
print('Please enter a valid character!')
print(my_track.genCode())</code></pre><a href="./docs/docs.html">
<h2>Documentation</h2>
</a><a href="./docs/files.html">
<h2>Files</h2>
</a>
</body>
<script src="prism.js"></script>
</html>