Context Free Art

Background directive

From Context Free Art

Jump to: navigation, search

Background Directives

The shapes rendered by Context Free/CFDG are drawn on a canvas that starts out with a background color. The default color is opaque white, but this can be changed using a background directive.

A background directive is a line in the CFDG file that starts with the word 'background' that is followed by set of color adjustments in curly braces. The adjustments are relative to the default background color of opaque white (hue = 0, saturation = 0, bright = 1, alpha = 1). If there are more than one background directive then only the first is used.

Here are some useful background directives:

background { b -1 }        // opaque black
 
background { a -1 }        // transparent
Views
Personal tools
Navigation
Toolbox
MediaWiki
Attribution-Share Alike 2.5
book coverSee our new book:
Community of Variation