roberttt Posted November 27, 2018 Share Posted November 27, 2018 Hi, i forgot how to use ramp color based on point number. i want black to red from 0 to 10 and just black after 10. Quote Link to comment Share on other sites More sharing options...
bunker Posted November 27, 2018 Share Posted November 27, 2018 (edited) attribwrangle: @Cd=chramp("ramp",fit(@ptnum,0,npoints(0)-1,0,1)); or to set the colors directly: vector red={1,0,0}; vector blue={0,0,1}; @Cd=lerp(red,blue,fit(@ptnum,0,npoints(0)-1,0,1)); Edited November 27, 2018 by bunker Quote Link to comment Share on other sites More sharing options...
roberttt Posted November 27, 2018 Author Share Posted November 27, 2018 8 minutes ago, bunker said: attribwrangle: @Cd=chramp("ramp",fit(@ptnum,0,npoints(0)-1,0,1)); thanks bunker but it still doesn't work. i attached my hip file. ramp.hiplc Quote Link to comment Share on other sites More sharing options...
bunker Posted November 27, 2018 Share Posted November 27, 2018 you need to create the spare parameters Quote Link to comment Share on other sites More sharing options...
roberttt Posted November 27, 2018 Author Share Posted November 27, 2018 4 minutes ago, bunker said: you need to create the spare parameters got it thanks 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.