The shading operation consist of let a background picture be rendered with different gradients of colors or light/dark. The {shading} tag is related to questions in which a shade operation is required.

learn more… | top users | synonyms

31
votes
4answers
5k views

How to draw a shaded sphere?

Andrew Stacey pointed out that the Rosetta Code entry "Draw a Sphere" doesn't have a TikZ entry yet. Is there a way to draw a "properly" shaded sphere using TikZ? The ball shading would seem an ...
13
votes
1answer
789 views

Tikz: Shading a path without any filling

How can I shade a path witout filling? In particular, I wand to draw a curved arrow that starts colored blue and ends colored green, where in between it gradually changes its color. I can't find a way ...
15
votes
1answer
1k views

How to create a ball shading and to customize 3D lighting manually?

TikZ shading=ball will create a perfect 3D ball perspective, but it has no option to change the lighting angle, the contract, radius of light, etc (or I am not aware of). I tried to create a 3D ball ...
12
votes
4answers
2k views

Tikz: shading region bounded by several curves

I know that my effort below can be improved upon considerably. In particular, there must be a way of shading the region in a single scope, as opposed to subdividing as I have done (thus necessitating ...
18
votes
3answers
2k views

TikZ: radial shading of a ring

I would like to have a radial shading of a ring, from inner color (red) at inner radius r1 > 0 to outer color (white) at outer radius r2 > r1. But with \filldraw[even odd rule,inner color=red,outer ...
16
votes
1answer
939 views

Path following color gradient in TikZ

How can I get a path following color gradient in TikZ? Here a quick example of the idea. On the left the result I'm looking for and on the right an example of a non path following gradient applied on ...
6
votes
1answer
1k views

Fading a path in TikZ

I want to draw a path/plot in TikZ whose shade depends on the coordinate. For example, I want say something like \draw[color=black!\x] plot coordinates{ coord1 ... coord100}; i.e. the shade of the ...
17
votes
3answers
3k views

Is there a way to tune ball shading in TikZ ?

I want to create a Go stone in TikZ. "ball color" option in node style is almost OK. Here is my result: But I don't like the stones, they are "too balish". The "reflection" should be less spot-on ...
11
votes
2answers
4k views

Cylinder shading with PGF/TikZ

I'm trying to create a cylinder with 3D shading effects. The cylinders in the picture are standing vertically, and have a body and an end. I'd like the body to be shaded so that it varies uniformly ...
8
votes
1answer
969 views

How to shade mindmap concepts?

I tried to add a shade on my mindmap's concepts with \begin{tikzpicture}[mindmap, text=white, every concept/.append style={circle,shading=ball, ball color=black!20!white!20}] but the problem is ...
12
votes
2answers
571 views

Gaussian ellipsoids using tikz

I'm trying to draw illustrations of Gaussian ellipsoids using shaded ellipses. In simple terms what I'm after is a way to have a light shade throughout the outer edge of the ellipse and a darker shade ...
13
votes
2answers
772 views

TikZ: shade also the border of a node

I would like to shade a node and the border of the node. The following code works but I don't like it very much that I have to draw something after the node on the background layer. I would prefer a ...
13
votes
1answer
2k views

TikZ, 3d library and circle fading

I'm using the 3d library to put a circle on the z=0 plane, and other things. I'd like to fade this circle radially, but the result isn't as I would expect because the fading is not proportional to the ...
23
votes
4answers
811 views

Can fuzzy borders be added to external pictures programmatically?

In my opinion, external pictures are often more pleasing to the eye on a white background when they have fuzzy rather than "sharp" borders. For instance, compare this to that Adding fuzzy ...
14
votes
2answers
3k views

Set table background hatched and shaded using tikz

I am looking for a convenient way to set the background of tabular cells. I'd like to do two things: (1) Set the background shaded in a color (2) Set the background hatched I learned that the TikZ ...
20
votes
4answers
965 views

How to shade text in different colors?

I need a single character in two colors. Figuring I could use the shadings library of TikZ, I followed the manual (section 23.4.1, the TikZ example): \documentclass{article} \usepackage{tikz} ...
9
votes
4answers
977 views

How do I shade an area in pgfplots?

How do I create a shaded area in a polygon created by plot intersections? In this case, up to the solid line without circle marks. \documentclass{article} \usepackage{pgfplots} ...
9
votes
1answer
332 views

Shading over a single page

I want to generate shading color in background for a single page. How can I implement this?
6
votes
1answer
211 views

Shaded multicols II

In extending a previous question, Shaded multicols, how can I put rounded corners on the multicol environment, for the outer 4 corners (ie the corners directly next to the page margins) This question ...
13
votes
3answers
761 views

Shading an area bounded by curved paths between nodes

I am drawing a graph of sorts in TikZ, and I have several connected nodes in a cycle, and I would like to shade the area bounded by paths between those nodes. My problem is that the shading is not ...
6
votes
1answer
157 views

How to use i.e. left, middle and right color when using draw as an argument instead of a command?

I'm forced to define colors within my tikzset for one of my projects. This requires me to use the draw command within my tikzset to set a color. Normally I can just use, say \draw command to just ...
6
votes
3answers
9k views

How to change the background color of \framebox?

I'm trying to change a picture drawn using the plain picture environment and I need to change the background color of certain \framebox to lightgrey. Is it possible? I know that there are more ...
5
votes
1answer
2k views

Tikz: How to encapsulate shade in node?

I have this shaded circle: \shade [ball color=black!80!white] (0,0) circle (1); Is it possible to encapsulate it with node style? Including fixing circle radius?
11
votes
2answers
281 views

How can I draw a curved gradient/fade in tikz?

I would like to draw something like the following diagram: My problem is drawing the grey curved path that fades away. The direction of the fading continually changes so that it is always ...
6
votes
2answers
130 views

How to add a shadow to a tikz line?

I have the following tikz picture. \documentclass{standalone} \usepackage{tikz} \usepackage{xcolor} \begin{document} \begin{tikzpicture}[ arr/.style={->, blue, very thick}, ...
5
votes
1answer
223 views

Drawing a box with shading in pgfplots

As a follow-up to this question, or more precisely this answer, I'd like to know how to do the equivalent of \shadedraw [shading=axis,left color=green,right color=orange,color=blue,line width=2] ...
3
votes
4answers
7k views

Beamer: How to remove shadow under the title on a given frame?

On one particular frame I would like to remove the shadow that the theme I am using inserts under the title. The reason is that with a black background (which I use only on this frame), it looks quite ...
2
votes
1answer
170 views

How to alternately shade rows in a table [duplicate]

I'm having trouble finding anything that will work with this checklist table that I have set up. I was hoping someone might have some suggestions. \usepackage{colortbl} \begin{center} ...
12
votes
2answers
201 views

TikZ/PGF - switching off shading

Is there a way to switch off shading for one node, in a scope where the nodes are shaded? In other words, I want something like shading=none, but did not find it. Motivation: \documentclass{article} ...
10
votes
1answer
384 views

How do I force tikz to use CMYK everywhere (also in shadings)?

I'm doing a poster with the baposter which uses tikz and at some point realized that some colors that should be identical are not. It turns out that tikz apparently resorts to RGB color space as soon ...
7
votes
1answer
174 views

Combining shading and transparency in TikZ

With this code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \fill[shading=radial] (0,5) circle (2); \fill[top color=black] (5,3) rectangle (9,7); ...
4
votes
1answer
362 views

tikz and mdframed + shadow drop and shading

I'm interesting in Boxed text between pages 2nd version: exercise box with mdframed. Ho to add to this : Vertically shaded frametitle and Vertically shaded box with dropping shadow? Yes i have seen ...
4
votes
1answer
3k views

Beamer round blocks without fading

I want to define a custom block in beamer. Here are my definitions: \documentclass[svgnames]{beamer} \usepackage{xcolor} \setbeamertemplate{blocks}[rounded] \setbeamercolor{block ...
3
votes
1answer
273 views

How to get horizontal black line when coloring cells?

I have the following table with an arrow showing the missing black horizontal black line: Here is the relevant code, I am wondering how do I get a black horizontal line where there is one missing? ...
2
votes
2answers
1k views

It's possible to remove the internal shading from a beamer rounded box?

I'm trying to modify a Beamer template in order to have at the same time: 1) rounded boxes 2) shadows around the box 3) a defined line (without shading) between block title and block body (as in ...
1
vote
1answer
230 views

Customize the size of the shaded box

I am using \begin{shaded} from \usepackage{framed}. The problem is I am using it for examples which come inside \begin{itemize}, the shaded box's margin does not begin with the \item margin instead ...