License MIT license
Lines 5
Average
n/a
Rated
0
Times
5
4
3
2
1
0
Keywords
Nodebox (14) python (30) state (1) translate (3) tutorial (7)
Included in this Library
Permissions
Owner: Theodore Test
Group Owner: Nodebox Community
Viewable by Everyone
Editable by All Siafoo Users

Nodebox Graphics State Tutorial Sample B, Location Atom Feed

In Brief A Nodebox code sample from the Graphics State portion of the tutorial. It demonstrates the persistent state concept in Nodebox with regards to location.... more
# 's
1rect(20,40,80,80)
2
3translate(100,100)
4rect(20,40,80,80)
5
6translate(100,100)
7rect(20,40,80,80)

A Nodebox code sample from the Graphics State portion of the tutorial. It demonstrates the persistent state concept in Nodebox with regards to location.

Note that the only difference between the various rectangle calls is Nodebox's state at the time of each call. In particular, the translate function has shifted the 'origin point' of Nodebox drawings.

http://www.siafoo.net/image/84