Search found 3 matches

by nftprd
2013-10-02T20:15:10-07:00
Forum: Users
Topic: Replace each RGB value with another number
Replies: 4
Views: 3581

Re: Replace each RGB value with another number

Thank you so much, Fred!! It works perfectly. I've put the commands in a neat PHP function if anyone else needs it to create a color LUT image... function table2image($map, $name='colorlut'){ $r = 'echo "P2 256 1 255 '.implode(' ',$map['red']). '" | convert - rlut.png'; $g = 'echo "P2 256 1 255 ...
by nftprd
2013-10-02T19:45:17-07:00
Forum: Users
Topic: Replace each RGB value with another number
Replies: 4
Views: 3581

Re: Replace each RGB value with another number

I'm using 6.7.7-10 on Linux. I'm following your directions, I'll update you once I've got it. Thanks so much!
by nftprd
2013-10-02T18:45:46-07:00
Forum: Users
Topic: Replace each RGB value with another number
Replies: 4
Views: 3581

Replace each RGB value with another number

Hello guys, this might be easy but I'm new here so I appreciate any help I can get. I have a color table that has custom (255) values for red, green, and blue like this: red = [ 0, 2, 3, 5 ... green = [ 0, 1, 1, 2 ... blue = [ 50, 50, 50, 70 ... Basically I would like to replace each rgb value from ...