![]() A shape is drawn, rotated and scaled from its bottom-left corner, except ellipses which are always drawn from their center. When the origin is moved to (100,80), all shapes drawn at (0,0) originate from this point. The origin can be moved (or translated) with the translate() command, where positive numbers define the amount of pixels to move right and up. Here are a number of screencasts to help you get through the installation procedures.īy, default, the 2D drawing canvas origin (0,0) is located in the lower left. If you get an "import pyglet" error, ensure that Pyglet is installed in site-packages/ too. Import sys if NODEBOX not in sys.path: (0, NODEBOX) In the nodebox/ext/ folder, execute setup.py from the command line: Although it is not required (everything will run fine without the extensions), you can compile binaries manually from the source code. Binaries have been precompiled for Mac OS X 10.5, but these may not work on your machine. NodeBox comes bundled with a number of C extensions that increase performance.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |