Group Abstract Group Abstract

Message Boards Message Boards

[?] Export palette from Mathematica into .pal file

Hi.

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.

Thanks, Markus

POSTED BY: Markus Schmidt
5 Replies
POSTED BY: Sander Huisman
POSTED BY: Markus Schmidt

You're welcome! It is not often that my software works at first try ;)

POSTED BY: Sander Huisman

I made a small update to the code, in case you give an rgb color with alpha-channel.

POSTED BY: Sander Huisman

May I ask why do you need that if you can plot most of things in Mathematica directly?

POSTED BY: Sam Carrettie
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard