Context Free Art

Size directive

From Context Free Art

Jump to: navigation, search

Cropped Rendering

Context Free/CFDG normally sizes the canvas so that every drawn shape fits within its borders. But sometimes a design is intended to bleed over the edge of the canvas. This can be done using the size directive, which fixes the size and position of the canvas. Shapes drawn outside of the canvas rectangle are cropped.

The Size Directive

Adding a size directive to a cfdg file makes its canvas fixed, instead of dynamic. The general form of a size directive is:

size {s width height x xpos y ypos}

This sets the canvas width and height in drawing units and sets the position of the center of the canvas to (-xpos, -ypos).

Views
Personal tools
Navigation
Toolbox
MediaWiki
Attribution-Share Alike 2.5
book coverSee our new book:
Community of Variation