[PD-dev] Canvas and ojb/cnv arguments in .pd
Hans-Christoph Steiner
hans at eds.org
Mon Jan 23 04:28:14 CET 2006
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:
>
> 1. 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?)
>
> 2. What format are the colours? -1 = black? 1 = white? What
> standard is
> this? (it's not hex, it's not RGB)?
>
> 3. 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 at iem.at
> http://lists.puredata.info/listinfo/pd-dev
>
________________________________________________________________________
____
There is no way to peace, peace is the way.
-A.J. Muste
More information about the Pd-dev
mailing list