7

I'm currently trying to make a printer test page (see full code). One part is a color wheel / RGB-spectrum or however you call this:

enter image description here

But it has "stripes". I would like to have a smooth color wheel. Is that possible with tikz, too? How?

Minimal code

\documentclass{standalone}

\usepackage{tikz}
\usetikzlibrary{shadings}

\begin{document}
\begin{tikzpicture}
    \draw[shading=color wheel] (0,0) rectangle (10,10);
\end{tikzpicture}
\end{document}
2
  • 3
    Your minimal code doesn't have any stripes. Have you tested with other pdf viewers?
    – Alenanno
    Commented Mar 7, 2016 at 8:26
  • 1
    That's most probably your viewer's fault as it is typical to have rasterized shadings in nonsupporting PDF readers
    – percusse
    Commented Mar 7, 2016 at 8:44

1 Answer 1

5

This is a problem of many PDF viewers (thanks to Alenanno and percusse for pointing it out). ImageMagick and Google Chrome showed it how it is supposed to look like.

Where it looks wrong

10
  • 3
    It's not a bug. It's just that the shadings are very new to PDF references. Most viewers do not support it yet by the way.
    – percusse
    Commented Mar 7, 2016 at 10:03
  • 1
    @percusse Ok. Hm. I think I'll still add bug reports so that they know that people actually notice (do you know a pointer to the specs? Or the version when it was added?) Commented Mar 7, 2016 at 10:12
  • 1
    @percusse A follow-up question: When the PDF viewer doesn't display it the right way, could a printer still print it the right way? Or does the PDF viewer always convert it e.g. to EPS? Commented Mar 7, 2016 at 10:16
  • 2
    Depends on the printer and its drivers. Newish PostScript printers can handle them pretty OK. Some will trip up and others will rasterize. It's really an annoying issue.
    – percusse
    Commented Mar 7, 2016 at 10:18
  • 1
    @SDrolet With ShareLaTeX, you can choose your PDF viewer: native (my choice) or built-in (default choice). You are right: the built-in PDF viewer of ShareLaTeX shows the color wheel as pink. Commented Mar 7, 2018 at 23:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .