[PD] [ANN] HOA & Cream Library new releases

Jonathan Wilkes jancsika at yahoo.com
Sat Jul 4 00:46:32 CEST 2015


On 07/03/2015 04:32 AM, Pierre Guillot wrote:
> > Pierre: what is the syntax for the "path" method, and what does it do?

I can't find the screenshot atm, but you had a message box with the 
selector "path" in it, followed by a series of numbers.

What does that message do?

-Jonathan

>
> The wrapper offers a layer structure called /t_elayer /that owns a set 
> of points.
> First we create a layer for a t_ebox (GUI object) :
> ebox_start_layer 
> <http://cicm.github.io/CicmWrapper/a00006.html#ga7c384db44fdd8ca5cc9d70db7bb15926> (t_ebox 
> <http://cicm.github.io/CicmWrapper/a00006.html#a00039> *x, t_symbol 
> <http://cicm.github.io/CicmWrapper/a00003.html#a00063> *name, float 
> width, float height)
>
> To create a path, you can use several functions :
> egraphics_move_to 
> <http://cicm.github.io/CicmWrapper/a00008.html#ga256b717f8eeea9cc755374b8a60cd293> (t_elayer 
> <http://cicm.github.io/CicmWrapper/a00008.html#a00047> *g, float x, 
> float y), egraphics_line_to 
> <http://cicm.github.io/CicmWrapper/a00008.html#gae7850b71992b31e3a6d51225898837ae> (t_elayer 
> <http://cicm.github.io/CicmWrapper/a00008.html#a00047> *g, float x, 
> float y), egraphics_curve_to 
> <http://cicm.github.io/CicmWrapper/a00008.html#ga61413d3f1e047843c061123564341809> (t_elayer 
> <http://cicm.github.io/CicmWrapper/a00008.html#a00047> *g, float 
> ctrl1x, float ctrl1y, float ctrl2x, float ctrl2y, float endx, float 
> endy), ect...
> The functions append points to the t_elayer.
>
> Before drawing all the paths, we apply the matrix transformations and 
> mark the layer ready to be drawn :
> ebox_end_layer 
> <http://cicm.github.io/CicmWrapper/a00006.html#gafbd3037b1afe3939912b1b5cff96a5bd> (t_ebox 
> <http://cicm.github.io/CicmWrapper/a00006.html#a00039> *x, t_symbol 
> <http://cicm.github.io/CicmWrapper/a00003.html#a00063> *name)
>
> Then we paint the layer :
> ebox_paint_layer 
> <http://cicm.github.io/CicmWrapper/a00006.html#ga4c40a6ef105573223e9d9cbb515c9db1> (t_ebox 
> <http://cicm.github.io/CicmWrapper/a00006.html#a00039> *x, t_symbol 
> <http://cicm.github.io/CicmWrapper/a00003.html#a00063> *name, float 
> x_p, float y_p)
>
> if something has changed (an attribute or whatever you want) and we 
> need to repaint a layer, we invalidate the layer with :
> ebox_invalidate_layer 
> <http://cicm.github.io/CicmWrapper/a00006.html#ga4e3b81f831ab7cf2730daae51405c715> (t_ebox 
> <http://cicm.github.io/CicmWrapper/a00006.html#a00039> *x, t_symbol 
> <http://cicm.github.io/CicmWrapper/a00003.html#a00063> *name)
>
>
> Graphical part of the wrapper :
> http://cicm.github.io/CicmWrapper/a00008.html
> Gui box part f the wrapper :
> http://cicm.github.io/CicmWrapper/a00006.html
>
>
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20150703/c9bd5638/attachment.html>


More information about the Pd-list mailing list