1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

Reference | rotate()


Syntax
rotate(degrees=0, radians=0)

DescriptionRotates all subsequent shape, path, text, image commands. The rotate() command is called with one parameter, by default specifying the angle in degrees. Optionally, the angle can be specified in radians, by calling rotate(radians=0.5) for example. The rotate() command works incremental: if you call rotate(30), and later on call rotate(60), all commands following that second rotate() will be rotated 90 degrees (30+60).
Tutorial Graphics State 


Example
fill(0.2)
rotate(-45)
rect(30, 30, 40, 40)