xirja
![]() |
Trying to sort a gradient based on perceptual brightness and then selecting the darkest color.
The script included in the attachment does not give the expected result. Getting values from the associative table doesn't seem to be working properly, as dark blue should be the result. Most likely there is a problem with getting values from the table after the sort. a nil issue? Any other ideas on how to use perceptual(Lab L) values to sort/reorder colors? ??? GradientTestDark.ffxml _____________________________________________________
http://web.archive.org/web/2021062908...rjadesign/ _____________________________________________________ |
|||
Posted: January 3, 2012 10:03 am | ||||
Sphinx.
![]() |
try this replacement:
|
|||
Posted: January 11, 2012 10:29 am | ||||
xirja
![]() |
Oh great, that _G["I"..i ] for multiple inputs! Thank you! It works, and much more elegantly than my baseball glove hands approach.
![]() If there was a more general case of sorting a spectrum using OUTPUT_WIDTH though? SpectrumTestCode.ffxml _____________________________________________________
http://web.archive.org/web/2021062908...rjadesign/ _____________________________________________________ |
|||
Posted: January 13, 2012 7:30 am |
Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!
33,713 Registered Users
+19 new in 30 days!
153,537 Posts
+6 new in 7 days!
15,348 Topics
+72 new in year!
20 unregistered users.