ivanozzo Posted July 22, 2019 Share Posted July 22, 2019 Hi All, Some color ramps that I often use have float values in the stops ranging from 0 to 1... like this one: Stop 0: 110,145,138 Stop 0.0071: 127,162,157 Stop 0.0286: 144,174,168 Stop 0.0857: 178,190,178 Stop 0.1429: 211,201,179 Stop 0.2857: 212,184,164 Stop 0.4282: 213,192,181 Stop 0.5714: 214,209,206 Stop 0.7143: 222,222,222 Stop 0.8571 238,238,238 Stop 1: 245,246,245 How to insert these values? I only see % values in the gradient map tool. Is this possible? Thanks!!! Have a nice day Quote Link to comment Share on other sites More sharing options...
GaryLearnTech Posted July 22, 2019 Share Posted July 22, 2019 Maybe I'm missing something here, but can you not simple multiply the floating stop values by 100? That will map your existing range of 0 to 1 to the full Affinity percentage range? For example Stop 0.0000 0.00% Stop 0.0071 0.71% Stop 0.0286 2.86% Stop 0.0857 8.57% Stop 0.1429 14.29% Stop 0.2857 28.57% Stop 0.4282 42.82% Stop 0.5714 57.14% Stop 0.7143 71.43% Stop 0.8571 85.71% Stop 1.0000 100.00% I'd suspect that you want/need to round off your percentage decimals, but I think it should otherwise sort your issue… Quote —— Gary —— Photo/Designer/Publisher: Affinity Store, v2.1.1 release Mac mini (M1, 2020), 16GB/2TB, macOS Ventura 13.4.1(c) • MacBook Pro (Intel), macOS Ventura • Windows 10 via VMware Fusion • iOS: current release Link to comment Share on other sites More sharing options...
ivanozzo Posted July 23, 2019 Author Share Posted July 23, 2019 10 hours ago, GaryLearnTech said: Maybe I'm missing something here, but can you not simple multiply the floating stop values by 100? That will map your existing range of 0 to 1 to the full Affinity percentage range? For example Stop 0.0000 0.00% Stop 0.0071 0.71% Stop 0.0286 2.86% Stop 0.0857 8.57% Stop 0.1429 14.29% Stop 0.2857 28.57% Stop 0.4282 42.82% Stop 0.5714 57.14% Stop 0.7143 71.43% Stop 0.8571 85.71% Stop 1.0000 100.00% I'd suspect that you want/need to round off your percentage decimals, but I think it should otherwise sort your issue… Yes, I know that you need to multiply by 100, but if you try to enter a float value such as 0.71 the software will consider it as 1, or 85.71 as 86 and so on. So Gradient tool doesn't support float values in stops, only integers. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.