@quenty/color3utils 5.26.0 → 5.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.27.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/color3utils@5.26.0...@quenty/color3utils@5.27.0) (2023-08-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * Add Color3Utils.toHexInteger(color3) ([4c0884f](https://github.com/Quenty/NevermoreEngine/commit/4c0884f2fa2c76420789b9637f0337fa591d5403))
12
+
13
+
14
+
15
+
16
+
6
17
  # [5.26.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/color3utils@5.25.0...@quenty/color3utils@5.26.0) (2023-07-28)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/color3utils
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/color3utils",
3
- "version": "5.26.0",
3
+ "version": "5.27.0",
4
4
  "description": "Utility methods for Roblox Color3 values",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -28,11 +28,11 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@quenty/blend": "^6.25.0",
31
+ "@quenty/blend": "^6.26.0",
32
32
  "@quenty/loader": "^6.2.1",
33
33
  "@quenty/math": "^2.4.0",
34
34
  "@quenty/rx": "^7.14.0",
35
- "@quenty/valueobject": "^7.20.0"
35
+ "@quenty/valueobject": "^7.21.0"
36
36
  },
37
- "gitHead": "539b6bcf1266fb18e143059d08381654cca200bd"
37
+ "gitHead": "839b4d929e4d6154aadf719f1ecfb9add4c8b247"
38
38
  }
@@ -115,4 +115,15 @@ function Color3Utils.areEqual(a, b, epsilon)
115
115
  and math.abs(a.b - b.b) <= epsilon
116
116
  end
117
117
 
118
+ --[=[
119
+ Converts the color3 to the actual hex integer used in web and other
120
+ areas.
121
+
122
+ @param color3 Color3
123
+ @return number
124
+ ]=]
125
+ function Color3Utils.toHexInteger(color3)
126
+ return bit32.bor(bit32.lshift(color3.r*0xFF, 16), bit32.lshift(color3.g*0xFF, 8), color3.b*0xFF)
127
+ end
128
+
118
129
  return Color3Utils