|
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 |
|||
| Posted: January 3, 2012 10:03 am | ||||
|
Sphinx.
|
try this replacement:
Njyldgarkn sample cache! |
|||
| 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 |
|||
| Posted: January 13, 2012 7:30 am | ||||
Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!
15,374 Registered Users
+7 new last day!
112,620 Posts
+101 new in 7 days!
10,102 Topics
+16 new in 7 days!
17 unregistered users.