Skip to main content

Questions tagged [shading]

The shading operation consists of letting 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.

Filter by
Sorted by
Tagged with
1 vote
2 answers
78 views

Shading the middle section in 4 circles

I currently have a diagram involving four circles and a square connecting all four centers. However, I'm trying to figure out how to shade the inner area of the four circles. My current code looks ...
andorooo's user avatar
0 votes
0 answers
60 views

beamer overlayarea preserve prior figure underneath with shading

Unfortunately, I had to fix some slides in a beamer presentation... I open a very similar post here. However, my problem is now that I need both images and text in the same slide at the same location/...
Matteo's user avatar
  • 413
0 votes
1 answer
48 views

overlayarea and image shading in beamer not working correctly when combined

I was working on a beamer presentation and wanted to show in three successive frames shaded images with the first one being overlayed in the first two frames. See below for an example: The idea is to ...
Matteo's user avatar
  • 413
0 votes
1 answer
62 views

How to make a blurred line connecting nodes

In the following tikz code \documentclass[border=1mm]{standalone} \usepackage[dvipsnames]{xcolor} \usepackage {tikz} % \usepackage {siunitx} % SI units, \SI and \ang commands % \usetikzlibrary{...
pablo's user avatar
  • 551
4 votes
1 answer
138 views

Finishing a TIKZ Gold Plate with a Correspondingly Finished Title

This post is an addendum to Providing an Authentic Finish to a TIKZ Gold Plate. Consider the code: \documentclass{article} % Compiles with XELATEX \usepackage[sfdefault]{cabin} \usepackage[english]{...
DDS's user avatar
  • 10.1k
1 vote
1 answer
70 views

Adding a Glow Effect to the Exterior of an Image

Consider the MWE: \documentclass{article} \usepackage{xcolor,graphicx} \begin{document} \begin{figure} [!htb] \centering \includegraphics[width=10cm,height=13cm]{example-image} \end{figure} \end{...
DDS's user avatar
  • 10.1k
3 votes
2 answers
137 views

TikZ: Shapes with an angular colour gradient

Cross-posting from Stack Overflow: https://stackoverflow.com/q/78347764/2777074 Good people! I'm trying to draw some shapes with an angular colour gradient, but I am unable to find the general syntax ...
StormyTeacup's user avatar
0 votes
1 answer
45 views

Soft clip not working for shaded areas beween curves

I've been trying to find a way to shade the area between the curves, but when I try coding in LaTeX with softclip, everything shuts down. I don't know what to do. This is my code : \documentclass[tikz,...
Emmannuelle_Legolas's user avatar
1 vote
1 answer
143 views

Gradient colour fill with light and shadow effect on 3D objects

I wonder if it is possible to obtain a gradient colour fill to replicate the light position by means of TikZ. For example in these images (taken by a book) it is evident, that the light effect from ...
Richard's user avatar
  • 306
3 votes
1 answer
353 views

Fully customizable color gradient in TikZ

Linear and radial gradients are very flexible in SVG. It is possible to create gradients containing multiple stops with translucent colors. Here is an example: The gradients in the figure from left ...
Keen Teen's user avatar
0 votes
1 answer
85 views

Path double color gradient in TikZ

I am trying to draw a path with a double color gradient, first magenta to cyan then cyan to magenta. I have tried to use the code from this thread, but the best I could do is this: \documentclass{...
Andros's user avatar
  • 339
1 vote
1 answer
60 views

How to avoid stroke around pgfplots fillbetween with shading?

If I shade an area with, e.g., pgfplots \addplot[shade, top color=cyan] fill between ..., the boundary of the shaded area has a very thin stroke around it. How do I avoid drawing any stroke around the ...
Taylor R Campbell's user avatar
1 vote
0 answers
45 views

improving formatting of 'annotated equations'

In one of the many (hundreds+) pages of lecture notes I have for several 'math-focused' classes, I often refer in words to pieces of an equation. This is easy to do on a blackboard -- use the words, ...
Johnny Canuck's user avatar
4 votes
1 answer
117 views

The color of a shaded rectangle cannot be recovered in some cases

In the following MCE, a tcolorbox is equipped with two rectangles drawn as overlays. The color of these rectangles is supposed to be the same as the bottom color of the tcolorbox. It works well with ...
Denis Bitouzé's user avatar
0 votes
0 answers
24 views

Shaded environment with different heights at the beginning of shaded area

I created an environment to shade some text I deem important. However, what I have within this environment can vary from a simple paragraph to an actual section or subsection. The problem is that the ...
aaragon's user avatar
  • 3,061
1 vote
1 answer
84 views

how can i shade the area

\documentclass {article} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{parskip} \usepackage{amsmath} \usepackage{geometry} \geometry{top=2cm, bottom=2cm, left=4.5cm, right=4.5cm} ...
Guillermo LP's user avatar
3 votes
1 answer
942 views

How to Lighten or Shade an Includegraphics Image

Consider the code \documentclass{article} \usepackage{graphicx,xcolor} \usepackage{transparent} \begin{document} \begin{figure}[!htb] \centering \includegraphics[width=20em,height=30em]{example-image}...
DDS's user avatar
  • 10.1k
4 votes
1 answer
372 views

Enhancing the Radiance of a Tikz Sun

Consider the code \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=3.0] \def\rS{1.3} % Radius of Sun \shade[% top color=yellow!70,% bottom color=...
DDS's user avatar
  • 10.1k
0 votes
2 answers
136 views

Shading outside an ellipse

This is related to another questions I posted (Shading around circles and ellipses). As I have only gotten a partial answer, I wanted to post a more narrow question to see if I can get the rest ...
Gregory V.'s user avatar
0 votes
2 answers
184 views

Shading around circles and ellipses

I have a circle inside an ellipse and am wanting to shade inside the circle (which could be done by drawing a filled circle) and outside the ellipse. I am using tikz axis package to draw the shapes ...
Gregory V.'s user avatar
3 votes
2 answers
238 views

How to draw shadows (with lines) on the outside of a closed curve?

The graph I want to draw is shown below: Regions A and B are represented by shaded lines. To fill the region A is easy. But I don't know how to draw shadows with lines that are near to the closed ...
licheng's user avatar
  • 817
2 votes
1 answer
761 views

Coloring a world map

I'm trying to create a graphic with tikz on latex/overleaf of a world map based on regionally disaggregated data, so I want e.g. all countries that belong to Eastern Europe to have the same colour, ...
dorokal's user avatar
  • 21
0 votes
3 answers
232 views

tikz radial shading starting in corner and staying circular

I am trying to reproduce a shading similar to the following picture: As you can see, the shading starts in the upper left corner and the rings of colors are circles. However, the shading also ...
Gunter's user avatar
  • 443
1 vote
1 answer
68 views

Transfiguring an Image with Multiple Tikz Shading Angles

Consider the code \documentclass{book} \textheight=10in \usepackage{tikz,graphicx} \begin{document} \thispagestyle{empty} \begin{tikzpicture} \node[opacity=0.5, inner sep=0pt](A) at (0, 0) {\...
DDS's user avatar
  • 10.1k
2 votes
1 answer
255 views

Tikz shading: understanding the position of color placement

This is a follow-up question to another one I asked here. I feel like that other question still needs a proper answer, and hopefully this current more specific question will help achieve that. The ...
tyogi's user avatar
  • 199
2 votes
2 answers
1k views

Tikz gradient with 3 or more colors using pgfdeclarehorizontalshading

I am trying to get a gradient to work with 3 distinct positions by using \pgfdeclarehorizontalshading. I have read the docs here and it seems rather straightforward that the different colors should be ...
tyogi's user avatar
  • 199
2 votes
3 answers
270 views

How to Automatically Overlay a Title of a Different Color onto Itself

I would like to be able to overlay a title of one color onto the same title of a different color to achieve a different effect; and I would like, if possible, to do this automatically without creating ...
DDS's user avatar
  • 10.1k
0 votes
2 answers
71 views

Filling area bounded by several lines and adding a text

I'm very new to Tex and trying to draw a graph using tikz package. So here's the code I wrote \documentclass{article} \usepackage{tikz} \begin{document} \ifx\du\undefined \newlength{\du} \fi \...
user avatar
0 votes
1 answer
51 views

how can I make that the shaded part is a little lighter than the rest?

I want to draw one figure as follows but how can I make that the shaded part what I marked in red is a little lighter than the rest? or use dashed line for that part? my MWE is as follows \begin{...
Ben's user avatar
  • 105
0 votes
1 answer
82 views

How to Shade Tikz Arc Just as I Did to Circles

I want this arc shaded just like I did to the Circle. \documentclass[border=1cm]{standalone} \usepackage[dvipsnames]{xcolor} \usepackage{tikz} \begin{document} \begin{tikzpicture}[font=\small] ...
Daniel James's user avatar
1 vote
0 answers
85 views

How to shade energy levels

The levels are generated using this block of code \documentclass[]{article} \usepackage{tikz} \usepackage{pgf} \usetikzlibrary{shapes.callouts} \tikzset{ level/.style = { ultra thick, blue }, ...
EnthusiastiC's user avatar
4 votes
1 answer
231 views

Tikz. Radial shading of a disk

I'm trying to create a ball similar to the image So I've used the following tikz code \documentclass[tikz]{standalone} \usepgflibrary {shadings} \begin{document} \begin{tikzpicture} \...
dEmigOd's user avatar
  • 397
0 votes
1 answer
32 views

Pgothic Title-Shaded st-Words Compiled with Lualatex in Which a Round 's' is Desired

Consider the code \documentclass{article} \usepackage{tikz} \usepackage{xcolor} \usepackage{pgothic} \newcommand\titleshading[3]{ \newcommand\xoffset{0.3} % Horizontal positioning of the colored ...
DDS's user avatar
  • 10.1k
2 votes
1 answer
68 views

Incorporating Multiple Title Color Shadings into a Document

Consider the following code: \documentclass{book} \usepackage{tikz} \usepackage{xcolor} \usepackage{pgothic} \newcommand\titleshading[3]{ \newcommand\xoffset{0.3} \newcommand\yoffset{-0.25} ...
DDS's user avatar
  • 10.1k
-1 votes
2 answers
219 views

Drawing a part of a cylinder

Here is the drawing I want to draw: I want to draw this part of the cylinder and a square with internal shading (I do not want the dotted line inside the square, it was a typo) Can someone help me in ...
Happy's user avatar
  • 363
1 vote
0 answers
83 views

This Code for Color Shading of Text Works with Pdflatex but Not Xelatex

Consider \documentclass{article} \usepackage{tikz} \usepackage{xcolor} \usepackage{scalerel} % For Vertical/Horizontal Stretch of Letters \usepackage{pbsi} % for bsifamily font. \newcommand\...
DDS's user avatar
  • 10.1k
8 votes
4 answers
2k views

Shading a heart

I want to draw and fill the below heart with TikZ package. I use the shading option for the whole heart or two semi-heart curve. It seem the heart divided! Please help me correct the suitable shading ...
Nam Tran Le's user avatar
2 votes
1 answer
245 views

Changing the Text Color in a Shadowed Title

I am trying to add some shading to a title by modifying code presented in Drop shadow for text in PGF/Beamer Consider the MWE \documentclass{article} \usepackage{tikz} \usepackage{xcolor} \newcommand\...
DDS's user avatar
  • 10.1k
1 vote
1 answer
233 views

How to shade overlaps of multiple circles?

I am trying to create in tikz an image like this illustration of the winset of the Q in two-dimensional space (drawn in Inkscape). The code below draws the circles as nodes, since that seems to be ...
William's user avatar
  • 11
3 votes
3 answers
327 views

Clipping issue with TikZ fading

Following Issue with fade-no-fill.sty, I wanted to try implementing @hpekristiansen solution. I’m giving a more complete code here because I have text nodes on the paths actually. \documentclass[tikz]{...
Archange's user avatar
  • 1,378
6 votes
4 answers
210 views

Issue with fade-no-fill.sty

I’m trying to have colour gradient on path, and discovered fade-no-fill.sty, which latest version seems to be https://tex.stackexchange.com/a/567029/56823. It works pretty well, but I have two small ...
Archange's user avatar
  • 1,378
1 vote
0 answers
50 views

Adding a TikZ canvas in standalone to solve Adobe shading problem

I generated some pictures which, tragically, my linux-Acrobat Reader plugin does not open due to the shadings. Only evince, okular, and light readers do, which solves the problem for me, but not for ...
I_need_blackground's user avatar
3 votes
2 answers
523 views

Tikz, parametric fill color (Goal: half color wheel with different colors)

My goal is to create a half color wheel in tikz looking something like that: The code I used to produce the above picture is based on: \shade[shading=color wheel white center,opacity=.3] [even odd ...
tobiasBora's user avatar
  • 9,116
2 votes
0 answers
126 views

How to fill this region in tikz

How to draw this figure in tikz The two closed curves shown can be any irregular closed curves (they may or may not look exactly like in the picture); also, the area around the point x can be a ...
Subhajit Paul's user avatar
0 votes
0 answers
171 views

pgfdeclarehorizontalshading: Why are some color combinations resulting in no shading?

The following displays no shading, it actually draws nothing: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \pgfdeclarehorizontalshading{myshade}{100bp}{% ...
Michaël's user avatar
  • 1,474
1 vote
1 answer
99 views

Shading parts of a graph

Although the header looks similar to this question, we could not find anything related to what we want in that answer. we would like to thatch shade a portion of a graph ( graphs with vertices and ...
baharampuri's user avatar
4 votes
1 answer
223 views

TikZ: black hole lensing effect

I am trying to draw a black hole in tikz, and then overlay it on a real astronomical image with stars in the background. So I take a real image and then plug in a black hole in between the stars, and ...
Britzel's user avatar
  • 629
1 vote
1 answer
435 views

beamer > beamercolorbox > Text with Shadow or Glow

This is a "fun" project. I want to create a beamer presentation with a fancy title frame. The goal is to have a black title frame with "bight colorful" text on it that looks like ...
Dr. Manuel Kuehner's user avatar
0 votes
1 answer
308 views

Shade an area on one side of the curve with the boundary of the irregular shading

I need to recreate this graph, with those shading on both sides of the curve, both with the line pattern down the curve, and the shading up the curve. Note that both limits of the shading are not ...
Ariel Fernandez's user avatar
1 vote
1 answer
259 views

Shading only the background of title block in the title page with a particular beamer theme

Is it possible to only shade the background of the title box in the title page in a theme like Madrid? I tried using \setbeamercolor{title}{use=structure,fg=white,bg=blue} but that only allows me to ...
George's user avatar
  • 11

1
2 3 4 5
7