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
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
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,
> "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 }
[
{
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
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://
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
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/