Skip to content

Commit ce686dc

Browse files
committed
A few cosmetic corrections (2nd pass).
1 parent f6143bd commit ce686dc

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ and/or [website](https://www.raylib.com).
2525
## binaries
2626

2727
raylibpy comes by default with 32bit binaries for Windows (`libraylib_shared.dll`, mingw),
28-
Linux (`libraylib.so.2.0.0`, i386) and MacOS (`libraylib.2.0.0.dylib`), but raylib have
29-
other [binary releases](https://github.com/raisan5/raylib/releases) (win64, mingw or
30-
msvc15 and linux amd64).
28+
Linux (`libraylib.so.2.0.0`, i386) and MacOS (`libraylib.2.0.0.dylib`), but you can find other
29+
[binary releases](https://github.com/raisan5/raylib/releases) for 64bit Windows, Linux or OSX.
3130

3231
raylibpy will look for the respective binary in 3 locations:
3332
* In the `RAYLIB_BIN_PATH` environment variable;
@@ -59,9 +58,7 @@ Python [enums](https://docs.python.org/3/library/enum.html).
5958

6059
### Structures
6160

62-
#### In general
63-
64-
All structures inherit from `ctypes.Structure` class. At the moment, constructors
61+
In general, all structures inherit from `ctypes.Structure` class. At the moment, constructors
6562
(except for vectors) require the exact argument types, so `int`s can't be passed
6663
where `float`s are expected (although the argument can be omitted).
6764

@@ -108,7 +105,6 @@ vec2 = vec3.uv # x and y respectively as u and v
108105
vec3 = vec3.bgr # x, y and z respectively as r, g and b ( rgb is not available in Vector 2)
109106
vec4 = vec2.rrrg # for attribute reading, is ok to repeat components
110107

111-
112108
# Writing (__setattr__)
113109
vec3 = Vector3(123.0, 467.0, 789.0)
114110
vec4.yxwz = 10, 0, -1, vec3.z # sequences of ints and/or floats are accepted as value
@@ -155,7 +151,7 @@ vec = Vector4(0., 1., 2., 3.)
155151
print(len(vec)) # outputs 4
156152

157153
# __iter__()
158-
for comp in v:
154+
for comp in vec:
159155
print(comp) # iterates on Vector4 components
160156

161157
# __getitem__()

0 commit comments

Comments
 (0)