Wolfram: Graphics Directive
What is Graphics Directive
Graphics Directives are things like color, thickness. They control the style and rendering of Graphics Primitive .
Here are commonly used graphics directives:
Red
Green
Blue
Hue
GrayLevel
etc.Opacity
PointSize
Thickness
Dashed
- more
3D Graphics Directives
EdgeForm
FaceForm
AmbientLight
PointLight
DirectionalLight
SpotLight
- more
List of All Graphics Directives
How to Apply Graphics Directive
Put directives in a list, preceding primitives. They have effect on the subsequent graphics primitives. e.g.
{Red, Thick, Circle[]}
Example
Graphics[{Red, Circle[ ]} , Axes -> True ] Graphics[{Red, Circle[ ], Line[{{0,0},{1,1}}] }, Axes -> True ]

Example
Graphics[{Red, Line[{{0,0},{1,1}}], Blue, Thick, Line[{{0,0},{1,2}}] }, Axes -> True ]

Grouping Graphics Directives
you can group several graphics directives as a single entity.
Directive. Group Graphics Directives
Directive
-
Group several graphics directive into one. e.g.
Directive[Red, Thick]
orDirective[{Red, Thick}]
Graphics[{ Directive[Red, Thick], Line[{{0,0},{1,2}}] }, Axes -> True ]
Style. Group Directives and Primitives
Style[prim, directive1, directive1, etc]
example
Style[Circle[], Red, Thick]
Wolfram. Graphics Programing
- Wolfram: Graphics Programing Index
- Wolfram: Graphics Primitive
- Wolfram: Graphics, Graphics3D
- Wolfram: Graphics Directive
- Wolfram: Geometric Transformation Functions
- Wolfram: Apply Transform to Graphics
- Wolfram: Compose Transformations
- Wolfram: Translate Copy Graphics
- Wolfram: Transformation Matrix
- Wolfram: GraphicsComplex
- Wolfram: Mesh Region
- Wolfram: Mesh Region Examples
- Wolfram: Extract Graphics from Plot Functions
- Wolfram: Graphics Misc
- Wolfram: Animation