Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Give an image an engraved appearance
ResourceFunction["ImageEngrave"][img] returns a version of img composed of horizontal lines that vary in thickness, giving an appearance of engraving. | |
ResourceFunction["ImageEngrave"][img, t] gives a result of type t. |
"ImageScale" | 2 | size ratio of ResourceFunction["ImageEngrave"][img] to img |
"LineColor" | Black | the color of the horizontal lines |
"LineScale" | 3 | scaling of the lines used |
Apply an engraved effect to an image:
In[1]:= |
|
Out[1]= |
|
Make a graphic of the engraved image:
In[2]:= |
|
Out[2]= |
|
The "ImageScale" option, which has a default of 2, sets the ratio between the sizes of img and ImageEngrave[img, elem]. In most cases, when img and ImageEngrave[img, elem] are the same size, the engraving effect is too fine to be seen:
In[3]:= |
|
Out[3]= |
|
The "LineColor" option uniformly sets the color for the engraved lines:
In[4]:= |
|
Out[4]= |
|
The "LineScale" option, which has a default of 3, sets the thickness of the horizontal lines:
In[5]:= |
|
Out[5]= |
|
Get an interesting mesh effect by combining vertical and horizontal engravings:
In[6]:= |
|
Out[6]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License