I would like to export a colour palette from Mathematica to Origin8.5. The Origin manual says that this requires a file in the format .pal (Microsoft palette format). I could not figure out so far how to create such file using Mathematica. I saw that someone did this with Matlab (see here: http://de.mathworks.com/matlabcentral/fileexchange/43114-cmap2pal-convert-matlab-colormap-to-binary-pal-format?requestedDomain=www.mathworks.com )
which actually works nicely. Anyone experience with such a thing? Any help would be greatly appreciated.
May I ask why do you need that if you can plot most of things in Mathematica directly?
I followed this description: http://worms2d.info/Palette_file
colorout=Take[#,3]&/@colorout; (* remove alpha channel if present *)
Print["plz check z colors, something wrong! kthxbye!"];
Unfortunately I don't have any software to test the pal file... so let me know if it works...
Dear Sander. It works. This is very nice, thank you for the help. This tool will be very helpful for me in the future. Best, Markus
You're welcome! It is not often that my software works at first try ;)
I made a small update to the code, in case you give an rgb color with alpha-channel.