You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,14 +83,16 @@ position = translation.multiply(position);
83
83
84
84
## Color math
85
85
86
-
VecMatLib also provides a structure to represent a color as fourfloating point values between 0.0 and 1.0 because colors are essentially 4D vectors.
86
+
VecMatLib also provides a structure to represent a color as four-dimensional or three-dimensional floating point tuples with values between 0.0 and 1.0.
87
87
88
88
```scala
89
89
valwhite=Color(1.0f, 1.0f, 1.0f) // (red = 1.0, green = 1.0, blue = 1.0, alpha = 1.0)
90
90
valgreen=Color(0.0f, 1.0f, 0.0f) // (red = 0.0, green = 1.0, blue = 0.0, alpha = 1.0)
91
91
valtransparentBlue=Color(0.0f, 0.0f, 1.0f, 0.5f) // (red = 0.0, green = 0.0, blue = 1.0, alpha = 0.5)
92
92
```
93
93
94
+
Values outside the range (0.0, 1.0) are allowed.
95
+
94
96
## Using with LWJGL
95
97
96
98
VecMatLib can be used together with [LWJGL](https://lwjgl.org) to set uniform variables in shaders.
@@ -163,4 +165,4 @@ Initially a university project, later completed and turned into a fully usable l
163
165
164
166
## Contributing
165
167
166
-
Your contributions are always welcome! Please submit a pull request or open an issue if you want to contribute with bug fixes, code improvements and better unit test coverage.
168
+
Your contributions are always welcome! Please submit a pull request or open an issue if you want to contribute with bug fixes, code improvements, documentation, and better unit test coverage.
0 commit comments