added 1038 characters in body
Source Link
lucky1928
  • 3.5k
  • 1
  • 15
  • 23

see this image, how can tike fading path the same? enter image description here

To give more details:

  1. If we just feed color top/middle/bottom just like below code:

    \addplot[fill opacity=1,top color=white,bottom color=white,middle color=black] fill between [of=A and B];

The result picture is:

enter image description here

  1. If we just feed color left/middle/right just like below code:

    \addplot[fill opacity=1,left color=white,right color=white,middle color=black] fill between [of=A and B];

The result picture is:

enter image description here

This case more like the reference duplicate one.

But the original picture is fading like following the curve's direction and color fading from center to border. so it's very special.

Schrödinger's cat's answer just do a work around to draw multiple times fading and shrink it one by one, then it just simulate that effect. it's slow for sure since divided the drawing into a loop. but that's what we want exactly.

see this image, how can tike fading path the same? enter image description here

see this image, how can tike fading path the same? enter image description here

To give more details:

  1. If we just feed color top/middle/bottom just like below code:

    \addplot[fill opacity=1,top color=white,bottom color=white,middle color=black] fill between [of=A and B];

The result picture is:

enter image description here

  1. If we just feed color left/middle/right just like below code:

    \addplot[fill opacity=1,left color=white,right color=white,middle color=black] fill between [of=A and B];

The result picture is:

enter image description here

This case more like the reference duplicate one.

But the original picture is fading like following the curve's direction and color fading from center to border. so it's very special.

Schrödinger's cat's answer just do a work around to draw multiple times fading and shrink it one by one, then it just simulate that effect. it's slow for sure since divided the drawing into a loop. but that's what we want exactly.

Became Hot Network Question
Source Link
lucky1928
  • 3.5k
  • 1
  • 15
  • 23

tikz - how to fading path like this sample with tikz

see this image, how can tike fading path the same? enter image description here