Re: [Factor-talk] "refresh" behavior for non-default vocab roots

2009-09-30 Thread Adam
There's also the `reload' word. On Wed, Sep 30, 2009 at 12:47 PM, Hugo Schmitt wrote: > Hello, > > I noticed that using this, which used to work for a vocab under > c:/factor/extra: > > "vocab" dup refresh run > > stopped working when I moved the vocab to c:/home/factor, which I add > as a vocab

[Factor-talk] "refresh" behavior for non-default vocab roots

2009-09-30 Thread Hugo Schmitt
Hello, I noticed that using this, which used to work for a vocab under c:/factor/extra: "vocab" dup refresh run stopped working when I moved the vocab to c:/home/factor, which I add as a vocabulary root on my factor-rc. Note that just running for the first time works though - it's refresh that s

Re: [Factor-talk] Reorganize some code for simplicity

2009-09-30 Thread Hugo Schmitt
The code works, thank you. On Wed, Sep 30, 2009 at 4:31 PM, Samuel Tardieu wrote: >> "Hugo" == Hugo Schmitt writes: > > Hugo> Hi again, what would be the best way to reorganize code like this > Hugo> (most Cairo functions take the same first argument): > > You may want to use "cleave" here,

Re: [Factor-talk] Reorganize some code for simplicity

2009-09-30 Thread Samuel Tardieu
> "Hugo" == Hugo Schmitt writes: Hugo> Hi again, what would be the best way to reorganize code like this Hugo> (most Cairo functions take the same first argument): You may want to use "cleave" here, to get something like (untested): : hello-cairo ( -- ) { 100 100 } [ {

[Factor-talk] Reorganize some code for simplicity

2009-09-30 Thread Hugo Schmitt
Hi again, what would be the best way to reorganize code like this (most Cairo functions take the same first argument): : hello-cairo ( -- ) { 100 100 } [ [ T{ rgba f 0 0 0 1 } set-source-color ] keep [ 0 0 cairo_move_to ] keep [ 100 100 cairo_line_to ] keep

Re: [Factor-talk] Help with Cairo

2009-09-30 Thread Hugo Schmitt
Thank you for the tip and thanks blei for pasting a correct version. Cheers, Hugo On Wed, Sep 30, 2009 at 1:13 PM, Joe Groff wrote: > On Wed, Sep 30, 2009 at 11:09 AM, Hugo Schmitt wrote: >> Hello. I'm trying to use cairo to generate a png image. >> >> But after running this program, >> http://

Re: [Factor-talk] Help with Cairo

2009-09-30 Thread Joe Groff
On Wed, Sep 30, 2009 at 11:09 AM, Hugo Schmitt wrote: > Hello. I'm trying to use cairo to generate a png image. > > But after running this program, > http://paste.factorcode.org/paste?id=945, all I get is blank 300x300 > png image. Anyone who has experience with cairo can give me a hint? > Also, h

[Factor-talk] Help with Cairo

2009-09-30 Thread Hugo Schmitt
Hello. I'm trying to use cairo to generate a png image. But after running this program, http://paste.factorcode.org/paste?id=945, all I get is blank 300x300 png image. Anyone who has experience with cairo can give me a hint? Also, how do I display an on the screen ? The cairo-gadgets/cairo-demos/