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

12
votes
1answer
186 views

Generate coloured fancy Delaunay patterns in Tikz

Recently in the world of the Internet this very fancy coloured pattern appeared: I was thinking if it is possible to generate something similar with TikZ. I saw this first example here in Drawing ...
3
votes
1answer
54 views

How do I gradient shade the background of a beamer section/subsection in head/foot?

Here is a reduced example of my code. I am attempting to restyle the background of the section in head/foot and subsection in head/foot in the CambridgeUS theme to a gradient background colour. ...
6
votes
1answer
55 views

Shading grid which is fully inside slips

I have an ellipse drawn over a grid of small square, I need to shade those square in which are fully inside the ellipse, is there is way to do it without trying to shade one by one for each square? ...
1
vote
1answer
88 views

Horizontally shaded title in beamer

How to get a horizontally shaded title in a beamer presentation? There are several post to do this for block titles or frame titles but I did not find anything for the title of the title page. ...
2
votes
1answer
42 views

Why is the frame title height reduced, when using shadow outer theme?

I want to have a horizontal shading in my frame title, so I can put a logo on the right side of the title. To have this in my frames, It seems that I have to use shadow outer theme. the problem is ...
8
votes
3answers
151 views

Diagram with a shaded region

The following MWE yields the diagram above but I would like to find a better way of showing the shaded region. \documentclass[letterpaper]{article} \usepackage{tikz} \usepackage{amsmath} \begin{...
2
votes
2answers
66 views

Inserting a box with shaded background text, in plain TeX.

I'm using Plain TeX and trying to create a box that has a shaded background, containing a mixture of both mathmode and textmode TeX. It would be great if I could add colour to the background (i.e. ...
1
vote
1answer
151 views

Shading a frame title in PaloAlto beamer

I'm not an expert in beamer and after a few hours on the web not finding how to do exactly what I want I'm asking for help. I would like to create a beamer using PaloAlto theme with a few ...
5
votes
1answer
55 views

How does the TikZ `shading angle` key work?

When answering this question, I found out that the shading angle key does not do what I expected it to do. The following MWE illustrates the problem. I've defined a shading with a sharp edge to make ...
4
votes
0answers
68 views

Tikz shading Issues

In the code below if I use the following code soft clip={domain=-3:3}, I get the graph on the top. If I use soft clip={domain=-2.99:3}, I get the graph on the bottom. Why does -3 not work? \...
5
votes
1answer
116 views

Shading the area between arcs with a rainbow

I am trying to shade areas between arcs in a rainbow fashion - and I want to be able to control if the red end is the lower end or at the upper one. MEW: \documentclass{standalone} \usepackage{tikz} ...
2
votes
0answers
55 views

Sphere shading in cmyk colours

I'm trying to make a sphere in cmyk colours. In rgb, the spheres are nicely overlapping as expected. Is the solution using @Christian Feuersänger suggestion here? \documentclass{standalone} \...
2
votes
2answers
115 views

How Can I Decorate a Parametric Curve?

I'm trying to draw a special parametric curve, but my results are not good enough, because I'd like to decorate it. So, I've tried this: \documentclass[10pt]{article} \usepackage{pgf,tikz} \...
0
votes
0answers
38 views

Shade an area bounded by two curves [duplicate]

Is there a way to shade the area bounded by U1 and U2 without using PGF plot? Also I do not want the shaded area to cover the curve P. Thanks! \documentclass{standalone} \usepackage{tikz} \...
2
votes
0answers
38 views

pgfplots: shade area between two table-generated curves

I have three statistical quantiles generated via \addplot table. I would like to shade the area between the highest and lowest quantiles (the mid one is the median). If I use \closedcycle, I shade ...
6
votes
1answer
118 views

Asymptote Shading Gradient in HSV Color Space

Using asymptote I'm trying to fill shapes with gradient shading in the HSV color space. Unfortunately, I think that HSV is not an available color space in asymptote. However, asymptote does have the ...
2
votes
0answers
27 views

ImageMagick fails to convert PDF files containing functional shading

Question I would like to make a GIF animation out of a series of functional shadings. But it seems ImageMagick cannot even handle one shading. Did I miss any option of ImageMagick? Or are there any ...
2
votes
1answer
179 views

Custom Fading for Rectangle

I tried to learn from How to define the distance of color regions in radial shading using TikZ? TikZ: radial shading of a ring TikZ Fading Speed and then create my own fading scheme in this MWE: ...
1
vote
1answer
97 views

How do you make a radial fading on top of a background image?

I have three objects that I want to superimpose on each other: Some text upon a background picture using a circle to create a radial fading from white to transparent so that it is possible to read the ...
0
votes
0answers
25 views

shading region bounded by several curves [duplicate]

I have the following code: \documentclass{book} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw [color=red,fill=red,fill opacity=1.0] (-0.67,1.06) circle (2.41cm); \draw [color=white,...
6
votes
1answer
102 views

How can I define a key that adds a coloured border inside a closed path, but plays nice with \fill?

I want to draw polygons that have a fixed width shading or border on the inside. Here is an image made in mspaint illustrating the kind of thing I'd like to draw: This question addresses this issue,...
0
votes
0answers
65 views

Extending TikZ fadings to the very ends of a character

I'm having a problem with the "custom letter" that I've already asked two questions about. The following MWE illustrates the issue: \documentclass[border=4]{standalone} \usepackage{accsupp,xcolor,...
3
votes
4answers
211 views

How to shade text in latex without a box?

I would like to add a background shade to my text in a report. I do not want to use a box to wrap the text though. Is this possible? MWE of my code is given below. In the code, I would like to shade ...
1
vote
0answers
49 views

CMYK Shading with relative coordinates

I am trying to in a way automate the shading issue described here: Drawing a box with shading in pgfplots The general goal is to put a working code part in my style definition using append after ...
1
vote
1answer
82 views

How to change shadedraw color

With, this code \begin{figure}[h!] \centering \begin{tikzpicture} \shadedraw[shading=radial, color=blue] (0,0) circle (4); \end{tikzpicture} \end{figure} I get this But is it ...
1
vote
0answers
35 views

Shade all presented content [closed]

Can I shade all the presented content in Beamer? I.e., I want all sections and subsections whose frames I have presented to be shaded and to remain shaded. Therefore, only the non-presented sections ...
3
votes
1answer
162 views

How to make a line style for drawing the ground line?

I'd like to draw a piece of "ground line" (picture below), but I don't know, how to make a line style and how to ensure proper localizations of the picture boundary. The solution of achieving an ...
2
votes
1answer
93 views

Venndiagram shading sticking out of the picture [duplicate]

My Venndiagram package went mad. The following code \documentclass{standalone} \usepackage{tikz} \usepackage{venndiagram} \begin{document} \begin{venndiagram3sets} \fillOnlyA \end{venndiagram3sets} \...
5
votes
1answer
347 views

(Kind of) photorealistic radial shading in TikZ

Is there a way to define more than one "spot" of light for one shading? Two (default white highlight and a big pink reflected light spot) were good and three were just great. I'm using \shadedraw[...
1
vote
1answer
91 views

Reducing upper and lower margin in shaded environment

I am using \begin{shaded} from \usepackage{framed} to highlight some formulae and theorems in some notes I am writing. I would like to reduce the upper and lower margin: how can I do it?
4
votes
1answer
60 views

how is clipping done in regions by circles and rectangles, square?

How to shade the region like this?
7
votes
2answers
204 views

Rotate and clip shading in TikZ

I'm trying to produce a copy of the right hand side of this picture using TikZ shadings. I thought it would be a simple task but it has proven itself difficult (at least for me). First I couldn't ...
1
vote
1answer
100 views

Tikz picture dissapears when zooming pdf above certain percentage

I want some shaded lines, so, as I didn't find any specific command for this, I'm trying to do it with a very thin rectangle. I compile with pdflatex and zooming the pdf makes the lines, and, ...
1
vote
0answers
87 views

Shading in a rotation without a canvas transformation

I'm currently working on a magnifying glass as an object without making use of the spy library. It is written as a \newcommand since I have to use it to some extense. My problem is the shading for the ...
7
votes
1answer
179 views

tikz-cd: Shade faces of commutative cube

I would like to "shade" the faces of a commutative cube drawn using tikz-cd. \documentclass{article} \usepackage{tikz} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} & P \ar{dl}[swap, ...
7
votes
3answers
385 views

how to shade a region bounded by straight lines and arcs in tikz

I have drawn a figure using tikz from Geobra. But I could not shade the region neeeded. \documentclass[twosides]{report} \usepackage{amsmath, amssymb, latexsym, amscd, amsthm} \usepackage[utf8]{...
1
vote
1answer
114 views

radially increasingly opaque overlay ellipse with text

Say I have a pattern on which I'd like a radially shaded (from transparent on the outside to white on the inside) so that the background pattern fades to white around the text. How would I achieve ...
1
vote
0answers
98 views

Smooth joining between shaded rectangles (TikZ)

I am assembling several rectangles to make a special shading. Here is my code : \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{fadings} \begin{document} \begin{tikzpicture} \...
3
votes
2answers
98 views

Theorems spanning pages without losing width

I use declaretheoremstyle to declare a theorem environment. I like the format of shaded, it gives a special background color without shorten the width of a text. But one problem is that a theorem ...
5
votes
2answers
99 views

Shading applied only to the first element with foreach

I want to apply the same shading to multiple rectangles. Here is a MWE of the code I use (for a sample of 3 rectangles): \documentclass{article} \usepackage[letterpaper,textwidth=8.5in,textheight=...
8
votes
3answers
2k views

Shading areas in TikZ

It's an easy TikZ question for people who use it. I tried reading the TikZ manual p. 112 several times but it seems too complicated on the filling part, all the infinity and whatnot... So I currently ...
5
votes
1answer
305 views

Five percent circle with fuzzy edge using tikz

Consider the following code: % DOCUMENT TYPE \documentclass[12pt,a4paper]{article} % PACKAGES \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{lipsum} \...
5
votes
2answers
416 views

Glowing path in tikz

I want to draw in tikz a line that diffuses and a dashed path that is basically the contour of this diffused area. I think that in photoshop the diffusing effect can be done by a blurred stroke. Is ...
4
votes
1answer
465 views

shading area between two curves in pgfplots

I have the following latex code: \begin{tikzpicture} \begin{axis}[ xlabel=Strike Price (K), ylabel={Put Value (p)} ] \addplot [only marks=*,blue] plot coordinates { (40,10) (...
11
votes
1answer
251 views

How to do logarithmic shading with TikZ?

Using TikZ, the shade option is very convenient to produce color shadings, but it produces only linear color gradients. Is it possible to obtain other transitions, and especially a logarithmic one? ...
11
votes
2answers
372 views

Light object / source in PGF / TikZ / PGFplots pictures like in PSTricks

I came across the PSTricks animation located at http://melusine.eu.org/syracuse/pstricks/pst-solides3d/animations/a43/ http://i.stack.imgur.com/NlqHZ.gif and noticed that it uses a light object / ...
7
votes
1answer
372 views

Construct colormap for iso / level surface in PGFplots

I am trying to construct a plot of a surface in 3d of which the color of the surface is dependent on the z coordinate. The difficult part is that I need the color to vary 'discretely', not ...
6
votes
1answer
152 views

Prevent shifting of shading center point when using relative coordinates

I am writing some macros that allow for the drawing of ball shapes in an arbitrary fashion in \foreach loops: \documentclass[tikz, border=0.5in]{standalone} \newcommand{\ball}[3][0,0]{%\ball[...
2
votes
1answer
1k views

How can I have a horizontally shaded frametitle in beamer?

This question is similar to How can I have a horizontally shaded block title in beamer?. I want to achieve the horizontal shading effect in the frametitle and when I use \setbeamertemplate{frametitle}...
1
vote
1answer
1k views

Tikz: Shading a rectangle diagonally,

I'm trying to draw a 3D picture with some shading to make it look a bit prettier. So far it's just a cuboid, and I discovered the shading command. Here is what I have so far: \documentclass[...