test hue's of 0 to 360 (not just -180 to +180)

c150313 enabled use of 0 to 360
master
Treer 2022-07-17 13:41:36 +10:00
parent 7c1563e345
commit b6756fce29
2 changed files with 8 additions and 2 deletions

View File

@ -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)

View File

@ -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)