@quenty/color3utils 11.18.4-canary.559.339cfa7.0 → 11.19.0-canary.0a5db80.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,20 +3,12 @@
|
|
|
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
|
-
|
|
6
|
+
# [11.19.0-canary.0a5db80.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/color3utils@11.18.2...@quenty/color3utils@11.19.0-canary.0a5db80.0) (2025-05-10)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
|
10
10
|
|
|
11
|
-
* Additional type checking updates ([
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
## [11.18.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/color3utils@11.18.2...@quenty/color3utils@11.18.3) (2025-04-10)
|
|
18
|
-
|
|
19
|
-
**Note:** Version bump only for package @quenty/color3utils
|
|
11
|
+
* Additional type checking updates ([7e008c5](https://github.com/Quenty/NevermoreEngine/commit/7e008c58547bd00b5904e56541454a38c8d72ccc))
|
|
20
12
|
|
|
21
13
|
|
|
22
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/color3utils",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.19.0-canary.0a5db80.0",
|
|
4
4
|
"description": "Utility methods for Roblox Color3 values",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@quenty/blend": "12.
|
|
32
|
-
"@quenty/loader": "10.
|
|
33
|
-
"@quenty/maid": "3.
|
|
31
|
+
"@quenty/blend": "12.19.0-canary.0a5db80.0",
|
|
32
|
+
"@quenty/loader": "10.9.0-canary.0a5db80.0",
|
|
33
|
+
"@quenty/maid": "3.5.0-canary.0a5db80.0",
|
|
34
34
|
"@quenty/math": "2.7.3",
|
|
35
|
-
"@quenty/rx": "13.
|
|
36
|
-
"@quenty/valueobject": "13.
|
|
35
|
+
"@quenty/rx": "13.18.0-canary.0a5db80.0",
|
|
36
|
+
"@quenty/valueobject": "13.18.0-canary.0a5db80.0"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "0a5db8004684dc3e76fd5944599a22602d48cfa9"
|
|
39
39
|
}
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
@class LuvColor3Utils.story
|
|
4
4
|
]]
|
|
5
5
|
|
|
6
|
-
local require =
|
|
7
|
-
require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).bootstrapStory(script)
|
|
6
|
+
local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).bootstrapStory(script)
|
|
8
7
|
|
|
9
|
-
local LuvColor3Utils = require("LuvColor3Utils")
|
|
10
8
|
local Maid = require("Maid")
|
|
9
|
+
local LuvColor3Utils = require("LuvColor3Utils")
|
|
11
10
|
|
|
12
11
|
return function(target: Instance?)
|
|
13
12
|
local maid = Maid.new()
|
|
@@ -15,21 +14,21 @@ return function(target: Instance?)
|
|
|
15
14
|
local start = Color3.fromRGB(184, 127, 100)
|
|
16
15
|
local finish = Color3.fromRGB(16, 60, 76)
|
|
17
16
|
|
|
18
|
-
for i
|
|
17
|
+
for i=0, 100 do
|
|
19
18
|
local frame = Instance.new("Frame")
|
|
20
|
-
frame.BackgroundColor3 = LuvColor3Utils.lerp(start, finish, i
|
|
21
|
-
frame.Size = UDim2.fromScale(1
|
|
22
|
-
frame.Position = UDim2.fromScale(i
|
|
19
|
+
frame.BackgroundColor3 = LuvColor3Utils.lerp(start, finish, i/100)
|
|
20
|
+
frame.Size = UDim2.fromScale(1/(100 + 1), 0.5)
|
|
21
|
+
frame.Position = UDim2.fromScale(i/(100 + 1), 0)
|
|
23
22
|
frame.BorderSizePixel = 0
|
|
24
23
|
frame.Parent = target
|
|
25
24
|
maid:GiveTask(frame)
|
|
26
25
|
end
|
|
27
26
|
|
|
28
|
-
for i
|
|
27
|
+
for i=0, 100 do
|
|
29
28
|
local frame = Instance.new("Frame")
|
|
30
|
-
frame.BackgroundColor3 = start:Lerp(finish, i
|
|
31
|
-
frame.Size = UDim2.fromScale(1
|
|
32
|
-
frame.Position = UDim2.fromScale(i
|
|
29
|
+
frame.BackgroundColor3 = start:Lerp(finish, i/100)
|
|
30
|
+
frame.Size = UDim2.fromScale(1/(100 + 1), 0.5)
|
|
31
|
+
frame.Position = UDim2.fromScale(i/(100 + 1), 0.5)
|
|
33
32
|
frame.BorderSizePixel = 0
|
|
34
33
|
frame.Parent = target
|
|
35
34
|
maid:GiveTask(frame)
|
|
@@ -38,4 +37,4 @@ return function(target: Instance?)
|
|
|
38
37
|
return function()
|
|
39
38
|
maid:DoCleaning()
|
|
40
39
|
end
|
|
41
|
-
end
|
|
40
|
+
end
|
|
@@ -340,12 +340,12 @@ end
|
|
|
340
340
|
LuvUtils.m = {
|
|
341
341
|
{ 3.240969941904521, -1.537383177570093, -0.498610760293 },
|
|
342
342
|
{ -0.96924363628087, 1.87596750150772, 0.041555057407175 },
|
|
343
|
-
{ 0.055630079696993, -0.20397695888897, 1.056971514242878 }
|
|
343
|
+
{ 0.055630079696993, -0.20397695888897, 1.056971514242878 }
|
|
344
344
|
}
|
|
345
345
|
LuvUtils.minv = {
|
|
346
346
|
{ 0.41239079926595, 0.35758433938387, 0.18048078840183 },
|
|
347
347
|
{ 0.21263900587151, 0.71516867876775, 0.072192315360733 },
|
|
348
|
-
{ 0.019330818715591, 0.11919477979462, 0.95053215224966 }
|
|
348
|
+
{ 0.019330818715591, 0.11919477979462, 0.95053215224966 }
|
|
349
349
|
}
|
|
350
350
|
LuvUtils.refY = 1.0
|
|
351
351
|
LuvUtils.refU = 0.19783000664283
|
|
@@ -353,4 +353,4 @@ LuvUtils.refV = 0.46831999493879
|
|
|
353
353
|
LuvUtils.kappa = 903.2962962
|
|
354
354
|
LuvUtils.epsilon = 0.0088564516
|
|
355
355
|
|
|
356
|
-
return LuvUtils
|
|
356
|
+
return LuvUtils
|
|
@@ -30,10 +30,10 @@ end
|
|
|
30
30
|
function LuvVectorColor3Utils.toColor3(luvV3: Vector3): Color3
|
|
31
31
|
-- Transform out of this space
|
|
32
32
|
return Color3.new(unpack(LuvUtils.hsluv_to_rgb({
|
|
33
|
-
(luvV3.X - 0.5)
|
|
34
|
-
(luvV3.Y - 0.5)
|
|
35
|
-
(luvV3.Z - 0.5)
|
|
36
|
-
|
|
33
|
+
(luvV3.X - 0.5)*200,
|
|
34
|
+
(luvV3.Y - 0.5)*200,
|
|
35
|
+
(luvV3.Z - 0.5)*200})
|
|
36
|
+
))
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
-
return LuvVectorColor3Utils
|
|
39
|
+
return LuvVectorColor3Utils
|