RadialGradientFilling
RadialGradientFilling[{col1,col2,…,coln}]
is a two-dimensional graphics directive specifying that faces of polygons and other filled graphics objects are to be drawn using concentric circles of colors coli.
RadialGradientFilling[{r1,r2,…,rn}{col1,col2,…,coln}]
uses the colors coli at radii ri.
RadialGradientFilling[{r1,r2,…,rn}{col1,col2,…,coln},{x,y}]
radiates from the center point {x,y}.
RadialGradientFilling[{r1,r2,…,rn}{col1,col2,…,coln},{{x,y},{r1,r2}}]
radiates from the center point {x,y} in concentric axis-aligned ellipsoids with semiaxes length proportional to ri.
RadialGradientFilling[{r1,r2,…,rn}{col1,col2,…,coln},{{x,y},{r1,r2}},padding]
uses the specified padding when drawing beyond the boundary radii r1 and rn.
Details
- RadialGradientFilling is also known as radial gradient.
- RadialGradientFilling is typically used to fill a region with a range of position-dependent colors.
- RadialGradientFilling[{col1,col2,…,coln}] specifies a progressive transition between coli using concentric circles from the center of the bounding box of a graphic object.
- RadialGradientFilling[] is effectively equivalent to RadialGradientFilling[{Black,White}].
- RadialGradientFilling["scheme"] uses the specified color scheme in ColorData.
- RadialGradientFilling[{r1,r2,…,rn}{col1,col2,…,coln}] specifies colors coli to use at the scaled radius ri taken to be relative to the width of the graphic object.
- ImageScaled can be used to specify the radii ri and is taken to be fractions of the whole image region.
- RadialGradientFilling[{r1col1,r2col2,…}] is equivalent to RadialGradientFilling[{r1,r2,…}{col1,col2,…}].
- RadialGradientFilling[{{r1,col1},{r2,col2},…}] is equivalent to RadialGradientFilling[{r1,r2,…}{col1,col2,…}].
- RadialGradientFilling[…,{x,y}] specifies the center point {x,y} of the concentric circles and it is taken to be coordinates scaled to run from 0 to 1 across the bounding box of a graphic object.
- RadialGradientFilling[…,{{x,y},{r1,r2}}] specifies the semiaxes length proportional to ri of the concentric axis-aligned ellipsoids.
- RadialGradientFilling[colors] is equivalent to RadialGradientFilling[colors,{{0.5,0.5},{0.5,0.5}}].
- RadialGradientFilling[{r1,…,rn}{col1,…,coln},center,padding] specifies the padding to use when drawing beyond the original range of radii between r1 and rn.
- Possible settings for padding include:
-
"Fixed" repetitions of the colors "Periodic" cyclic repetitions of all the colors "Reflected" reflections of the colors - RadialGradientFilling[colors,center] is effectively equivalent to RadialGradientFilling[colors,center,"Fixed"].
Examples
open allclose allBasic Examples (3)
Scope (12)
Basic Uses (6)
Specifications (6)
LinearGradientFilling with no arguments draws a progressive transition from Black to White:
Specify the scaled position of each color:
Scaled positions are taken to be relative to the width of the graphic objects:
Specify color positions by fractions of the whole image:
Use predefined color scheme from ColorData:
Applications (8)
Basic Applications (2)
Basic Applications (3)
Gradient Colors (3)
Collection of gradient colors in ColorData:
Collection of gradient colors in the Wolfram Data Repository:
Text
Wolfram Research (2020), RadialGradientFilling, Wolfram Language function, https://reference.wolfram.com/language/ref/RadialGradientFilling.html.
CMS
Wolfram Language. 2020. "RadialGradientFilling." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RadialGradientFilling.html.
APA
Wolfram Language. (2020). RadialGradientFilling. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RadialGradientFilling.html