Explain yourself with reStructured Text, embedded code, graphs, charts, and LaTeX–style math.
Join Siafoo Now
or
Learn More
Nodebox Graphics State Tutorial Sample A, Color
| In Brief | A Nodebox code sample from the Graphics State portion of the tutorial. It demonstrates Nodebox's notion of a maintained "state" -- a persistent set of remembered parameters for the programming environment.... more |
| Language | Nodebox Python |
# 's
1fill(1,0,0)
2oval(10,10,50,50)
3oval(10,70,50,50)
4oval(10,130,50,50)
5
6stroke(0)
7nofill()
8oval(10,190,50,50)
9oval(10,250,50,50)
A Nodebox code sample from the Graphics State portion of the tutorial. It demonstrates Nodebox's notion of a maintained "state" -- a persistent set of remembered parameters for the programming environment.
Add a Comment