[Grace-core] Cross platform graphics library
Alex Sandilands
sandilands.alex at gmail.com
Tue Jan 28 13:52:56 PST 2014
On Wed, Jan 29, 2014 at 10:47 AM, Timothy Jones <tim at ecs.vuw.ac.nz> wrote:
> That's procedural, not functional, but it's a really interesting design to
> let it work both ways. Can you inherit from createCanvas? That'd let you
> use it like Processing, with an implicit canvas.
>
> w.add(object {
> inherits g.createCanvas
> fill := true
> color := col.blue
> drawRectangleAt(50, 100) sized(20, 30)
> })
>
Yup that should work fine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailhost.cecs.pdx.edu/pipermail/grace-core/attachments/20140129/2f4b9929/attachment.html>
More information about the Grace-core
mailing list