WolframLang: Graphics Misc

By Xah Lee. Date: . Last updated: .
work in progress

Smart Function: Rotate

xtodo work in progress

Rotate is a smart function, that can rotate text, or other input in a smart way. Typically it's used for graphics design. Not good for mathematical programing or programing geometry.

Its input can be anything, and will smartly do rotation or other to the input, and display it.

WolframLang Rotate 2024 TBq6
WolframLang Rotate 2024 TBq6

Its input can also be Graphics Primitives , but will display a rotated version of text:

WolframLang Rotate 2024-02-24 Dzqp
x1 = Rotate[Rectangle[], 30 Degree, {0, 0}]

Head[x1]

Graphics[x1, Axes -> True]

Its input can also be a Graphics object. The result is rotated graphics, including things such as axes:

WolframLang Rotate 2024 gK8q
WolframLang Rotate 2024 gK8q

If you compare Rotate vs GeometricTransformation and RotationTransform, For example,

Rotate[ graPrims , 30 Degree, {0,0}]

is roughly the same as

GeometricTransformation[ graPrims , RotationTransform[ 30 Degree ] ]

when their result is shown inside Graphics. but the Rotate version will directly display the result of literal rotated text of its input.

WolframLang Rotate 2024 mvRY
WolframLang Rotate 2024 mvRY
(* compare Rotate vs GeometricTransformation *)

graPrims = {Line[ {{0,0}, {1,0}} ]};

re1 = Rotate[ graPrims , 30 Degree, {0,0}]

re2 = GeometricTransformation[ graPrims , RotationTransform[ 30 Degree ] ]

Graphics[{re1, re2}, Axes -> True]

Scale

xtodo work in progress

WolframLang, Graphics Programing