parent
7c1563e345
commit
b6756fce29
6
hsl.lua
6
hsl.lua
|
@ -1,5 +1,6 @@
|
|||
-- test normal hue-saturation-lightness values
|
||||
|
||||
texturemodifiertest.create_node("hsl", nil, 180)
|
||||
texturemodifiertest.create_node("hsl", nil, 150)
|
||||
texturemodifiertest.create_node("hsl", nil, 120)
|
||||
texturemodifiertest.create_node("hsl", nil, 90)
|
||||
|
@ -11,7 +12,12 @@ texturemodifiertest.create_node("hsl", nil, -60)
|
|||
texturemodifiertest.create_node("hsl", nil, -90)
|
||||
texturemodifiertest.create_node("hsl", nil, -120)
|
||||
texturemodifiertest.create_node("hsl", nil, -150)
|
||||
texturemodifiertest.create_node("hsl", nil, -180)
|
||||
|
||||
-- Since it's now possible to use 0 to 360 instead of -180 to +180
|
||||
texturemodifiertest.create_node("hsl", nil, 240) -- same as -120
|
||||
texturemodifiertest.create_node("hsl", nil, 300) -- same as -60
|
||||
texturemodifiertest.create_node("hsl", nil, 360) -- same as 0
|
||||
|
||||
-- with saturation
|
||||
texturemodifiertest.create_node("hsl", nil, 150, 30)
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
-- test values outside of the texture modifier input range
|
||||
|
||||
-- Hue-Saturation-Lightness
|
||||
texturemodifiertest.create_node("hsl", "OOB", 181)
|
||||
texturemodifiertest.create_node("hsl", "OOB", 361)
|
||||
texturemodifiertest.create_node("hsl", "OOB", -181)
|
||||
texturemodifiertest.create_node("hsl", "OOB", 0, 1001, -101) -- saturation can now go as high as 1000%
|
||||
texturemodifiertest.create_node("hsl", "OOB", 0, -101, 101)
|
||||
texturemodifiertest.create_node("hsl", "OOB", 10000, 10000, 10000)
|
||||
|
||||
-- Colorize
|
||||
texturemodifiertest.create_node("colorizehsl", "OOB", 181)
|
||||
texturemodifiertest.create_node("colorizehsl", "OOB", 361)
|
||||
texturemodifiertest.create_node("colorizehsl", "OOB", -181)
|
||||
texturemodifiertest.create_node("colorizehsl", "OOB", 0, 1001, -101) -- saturation can now go as high as 1000%
|
||||
texturemodifiertest.create_node("colorizehsl", "OOB", 0, -101, 101)
|
||||
|
|
Loading…
Reference in New Issue