Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I'd like to use the Drawing Tools palette to draw objects in CMYK colour. The only way I seem able to change the colours of these objects is to use the window shown below.

Edit

Is there a way to change the colours of objects made with Drawing Tools that will allow me to enter the C, M, Y, K values into input fields?

enter image description here

share|improve this question
    
Hello... Please tell me if this can help you: Manipulate[ ListLinePlot[Sin[#] & /@ Range@20, PlotStyle -> {Thick, color}], {color, Gray, ColorSlider}]. –  Rod Aug 29 '13 at 17:57

1 Answer 1

Since as far as I can tell the Drawing Tools palette always uses the system (e.g. Windows) color picker I don't think it is (presently) possible to solve your first question.

Your second question has more possibility:

Is there a way to change the colours of objects made with Drawing Tools that will allow me to enter the C, M, Y, K values into input fields?

I believe that the functionality on which I shall depend was introduced in version 10.

Let's start with first example from the Graphics documentation:

gr = Graphics[{Thick, Green, Rectangle[{0, -1}, {2, 1}], Red, Disk[], Blue, 
   Circle[{2, 0}], Yellow, Polygon[{{2, 0}, {4, 1}, {4, -1}}], Purple, Arrowheads[Large], 
   Arrow[{{4, 3/2}, {0, 3/2}, {0, 0}}], Black, Dashed, Line[{{-1, 0}, {4, 0}}]}]

enter image description here

Although entered with directives here such a graphic could be constructed using the Drawing Tools.

We can convert this into an editable form by applying Defer to the head using Operate, and we can convert all color directives to CMYKColor type:

Operate[Defer, gr /. c_?ColorQ :> ToColor[c, CMYKColor]]

enter image description here

If we click on any of the color squares we get a CMYK setter like this:

enter image description here

After changing the color and clicking OK we can evaluate the cell to render the new Graphics:

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.