<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>hahaha! are you kidding me? (:<br></div>
<div> </div>
<blockquote type="cite">I guess the next step is to make pacman eat those objects as he moves over them.<br></blockquote><div>.. or maybe even make him sing?<br></div>
<div> </div>
<div>~/.jc</div>
<div> </div>
<div>On Mon, Sep 7, 2015, at 09:52 PM, Jonathan Wilkes wrote:<br></div>
<blockquote type="cite"><div><div>Btw-- the "canvas" field isn't the only
way to avoid throwing around gpointers.<br></div>
<div> </div>
<div>
Here's a quick pacman vector animation where I just animate by
changing the<br></div>
<div>
attributes of the drawing instruction. Since it's all vector
drawings I can scale pacman<br></div>
<div>
to any size I wish without it becoming pixelated:<br></div>
<div> </div>
<div> <a href="http://pdblog.nfshost.com/pacman.webm">http://pdblog.nfshost.com/pacman.webm</a><br></div>
<div> </div>
<div>
I guess the next step is to make pacman eat those objects as he
moves over them.<br></div>
<div> </div>
<div>
-Jonathan<br></div>
<div> </div>
<div>
On 09/02/2015 02:29 PM, jamal crawford wrote:<br></div>
</div>
<blockquote type="cite" cite="mid:1441218542.2238274.373053329.4AB1E3B6@webmail.messagingengine.com"><div>hey list, Jonathan.<br></div>
<div> </div>
<blockquote><div>You start with a struct:[struct foo float x float y canvas
a b]<br></div>
<div>Then create a scalar from this struct.<br></div>
<div>The scalar will have an "x" value, a "y" value, and a
canvas "a" which gets filled with the contents of an
abstraction "b.pd" that is somewhere in Pd's search path.<br></div>
<div>Now here's the neat thing-- inside the newly instantiated
"b.pd" you can do this:<br></div>
<div>[loadbang]|[field x]|[print x]<br></div>
<div> </div>
</blockquote><div> </div>
<blockquote><div><pre>imagine you have a drawing instruction like this:[draw rect 0 0 20 20]
When you create the scalar you get a little black box on a canvas.
With a canvas field like I described, you can right-click the scalar and choose "Open" to show a canvas window.<br></pre></div>
</blockquote><div> </div>
<div>while trying to create [struct foo float x float y canvas a
b], i get: canvas: no such type, using pd 0.46.6<br></div>
<div>what am I missing?<br></div>
<div> </div>
<div>~/.jc<br></div>
<div> </div>
</blockquote></blockquote><div> </div>
</body>
</html>