Skip to content

Commit 97236cc

Browse files
committed
Updated Readme and version number
1 parent 86f9b72 commit 97236cc

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Readme.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,16 @@ position = translation.multiply(position);
8383

8484
## Color math
8585

86-
VecMatLib also provides a structure to represent a color as four floating 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.
8787

8888
```scala
8989
val white = Color(1.0f, 1.0f, 1.0f) // (red = 1.0, green = 1.0, blue = 1.0, alpha = 1.0)
9090
val green = Color(0.0f, 1.0f, 0.0f) // (red = 0.0, green = 1.0, blue = 0.0, alpha = 1.0)
9191
val transparentBlue = Color(0.0f, 0.0f, 1.0f, 0.5f) // (red = 0.0, green = 0.0, blue = 1.0, alpha = 0.5)
9292
```
9393

94+
Values outside the range (0.0, 1.0) are allowed.
95+
9496
## Using with LWJGL
9597

9698
VecMatLib can be used together with [LWJGL](https://lwjgl.org) to set uniform variables in shaders.
@@ -120,7 +122,7 @@ allprojects {
120122

121123
```groovy
122124
dependencies {
123-
implementation 'com.github.HexagonNico:VecMatLib:1.1'
125+
implementation 'com.github.HexagonNico:VecMatLib:1.2'
124126
}
125127
```
126128

@@ -139,7 +141,7 @@ dependencies {
139141
<dependency>
140142
<groupId>com.github.HexagonNico</groupId>
141143
<artifactId>VecMatLib</artifactId>
142-
<version>1.1</version>
144+
<version>1.2</version>
143145
</dependency>
144146
```
145147

@@ -150,7 +152,7 @@ resolvers += "jitpack" at "https://jitpack.io"
150152
```
151153

152154
```sbt
153-
libraryDependencies += "com.github.HexagonNico" % "VecMatLib" % "1.1"
155+
libraryDependencies += "com.github.HexagonNico" % "VecMatLib" % "1.2"
154156
```
155157

156158
## Support the project
@@ -163,4 +165,4 @@ Initially a university project, later completed and turned into a fully usable l
163165

164166
## Contributing
165167

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.

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ThisBuild / version := "1.1"
1+
ThisBuild / version := "1.2"
22

33
ThisBuild / scalaVersion := "2.13.10"
44

0 commit comments

Comments
 (0)