Check out "Pd File Format" at the bottom of this page:
http://puredata.org/docs/developer/
Also, that document is included in the Pd-extended distro.
.hc
On Jan 22, 2006, at 3:40 PM, Dave S wrote:
Hello All,
I'm trying to determine what arguments are used by PD to create a canvas.
I've determined the following:
A "parent" canvas (i.e. top-level window) has the following arguments:
#N canvas ( 0 = top 0 = left 772 = width 532 = height 12 = font-size )
As in: #N canvas 0 0 772 532 12;
However, a canvas created as an object inside a window has the following arguments: #X obj ( 0 = top 0 = left cnv = ( 15 = selectable area size 768 = width 22 = height cnv_heading_S = send name cnv_heading_R = receive name All_About_Canvases = title 12 = title-left-offset 12 = title-top-offset 0 = font-face 14 = font-size -233017 = background-color -1 = foreground-color 0 = UNKNOWN????????????????????????? );
As in: #X obj 0 0 cnv 15 768 22 cnv_heading_S cnv_heading_R All_About_Canvases 12 12 0 14 -233017 -1 0;
I have three questions:
- What is the LAST argument of cnv used for (the "UNKNOWN" one
above)? My best guess is that it's an integer which indicates Graph on Parent? Or perhaps it's an "id" of some kind?)
- What format are the colours? -1 = black? 1 = white? What
standard is this? (it's not hex, it's not RGB)?
- By the parenthesis above, you can see that I assume that the "obj"
structure accepts three arguments (with the THIRD argument being the cnv structure). -- is this observation accurate?
Thank you. Dave Sabine
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
________________________________________________________________________ ____
There is no way to peace, peace is the way. -A.J. Muste