Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Display graphics with a drop shadow
ResourceFunction["DropShadow"][graphics] adds a drop shadow effect to the given graphics object. |
| "Blur" | 8 | the pixel radius of the shadow blur |
| "Color" | Gray | the color of the shadow |
| ImagePadding | Automatic | specify extra padding for extended objects |
| "Offset" | {-5,8} | the pixel offset {x,y} of the shadow |
| "Opacity" | Automatic | the opacity of the shadow |
Add a drop shadow to Graphics:
| In[1]:= |
| Out[1]= | ![]() |
Add a styled drop shadow to the plot of a Molecule:
| In[2]:= | ![]() |
| Out[3]= | ![]() |
Add a drop shadow to a Graph:
| In[4]:= | ![]() |
| Out[5]= | ![]() |
DropShadow returns a Graphics object that you can use with Show:
| In[6]:= |
| Out[6]= | ![]() |
Add a drop shadow to an Image with an alpha channel:
| In[7]:= | ![]() |
| Out[7]= | ![]() |
Add a drop shadow to a GraphicsGrid:
| In[8]:= | ![]() |
| Out[8]= | ![]() |
DropShadow doesn't work on all types of objects, for example:
| In[9]:= |
| Out[9]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License