[PD] Purr Data rc4

Jonathan Wilkes jancsika at yahoo.com
Sat Jan 21 17:48:01 CET 2017





#yiv7710537834 #yiv7710537834 -- P {margin-top:0;margin-bottom:0;}#yiv7710537834 > I think that having the ability to load an html at the background will ease a lot of things. Probably making translations or helps easier & nicer & cross-platform & on-line.
I don't think that would help because html isn't pixel exact.  The relationship between background html and foreground Pd canvas objects (which in Purr Data are 
just svg elements) is difficult and unintuitive to control.

> I`m not saying that Purr-Data should be used for generating or editing html.
> I`m thinking of it as a “Canvas” but not just as a color and a font, but with all the flexibility of an html (markup language).
I have added some drawing instructions and event handlers to data structures with the [draw] object.  That allows grouping 
and arbitrary path drawings.  (But I don't have an interface to draw text yet.)

> Since you are working with HTML5, I think this type of thing should be natural.
It is, and Purr Data patches themselves are just html files with an svg on them.

---
> Currently I`m using [ggee/image] as a “rich-canvas”, some screen-shots:
http://lucarda.com.ar/ver/2010/LEER.html
http://lucarda.com.ar/ver/2014/LEER.html
http://www.tigresvoladores.com.ar/folkloro-en.html
> Of course these are not done with a “markup language”, but are cross-platform.
It's probably easier to allow opening arbitrary html files and having a nice interface for 
talking to Pd through them.  That would be more flexible and easier to implement/maintain.

But feel free to experiment with putting html content inside an external.  It shouldn't be 
hard to create an external that displays HTML5 content in a rectangle on a Pd canvas.  Throw 
some webgl in there, or a video player.  The hard part only comes if you want to add xlets and 
somehow interface with the displayed state through Pd messages.

-Jonathan


Mensaje telepatico asistido por maquinas.

From: Jonathan Wilkes <jancsika at yahoo.com>
Sent: Saturday, January 21, 2017 4:01 AM
To: Lucas Cordiviola; Alexandre Torres Porres; pd-list at lists.iem.at
Subject: Re: [PD] Purr Data rc4 > Cool,


> Btw: How far we are from displaying a normal html+css inside a Purr-Data
patch?
What did you have in mind?

> Or to make an html+css as background to a patch?
It's possible to do that atm, either by changing one of the css files
or through devtools.  But I don't have an interface that lets you set
this by sending a Pd message within a patch.

> Is there an object that loads and display html?
There isn't.  You could load an html page and send messages to
Pd from it.  But again, I don't have an interface built to do anything
like that yet.
-Jonathan

Salutti,Lucarda.

Mensaje telepatico asistido por maquinas.





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


More information about the Pd-list mailing list