Page 1 of 1

How do I save without the white background?

Posted: Tue May 15, 2007 1:55 pm
by Dragon_of_death_
So what I'm trying to do it take this tree desgin and put it in photoshop but When I save it and load it in photoshop it has that white background and I can't get rid of it. And yes I tried just using the magic wand tool in photoshop didn't select the branches. So I was wondering if there was a way to save JUSt the tree or something like that

Posted: Tue May 15, 2007 5:09 pm
by Pure Pandemonium
Perhaps try selecting the white background and deleting it? Photoshop ought to leave a transparent background then, with only the tree remaining. If there are still white bits sticking to your tree when you put it in something else, play with the feather settings on the magic wand when you select the white.

Edit: I am new to Context Free and just found the wiki. It looks like you can make the background transparent. See the Background directive article. I think the line you want is

background { a -1 }

Posted: Thu May 17, 2007 8:28 pm
by Dragon_of_death_
Oh thanks :D

Posted: Thu Nov 22, 2007 5:29 am
by bh2
You could also save as svg... then you can have any background you want.
Beware though... these files can be huge.

Posted: Tue Dec 11, 2007 1:55 pm
by ocelot
Where abouts in the code do you put the background command? I keep getting errors.

I'm just trying it out on the examples, where would I background {a -1} in this code?
startshape SEED1

rule SEED1 {
SQUARE{}
SEED1 {y 1.2 size 0.99 rotate 1.5 brightness 0.03}

}

rule SEED1 0.05 {SEED1 {flip 90}}

rule SEED1 0.05 {
SQUARE{}
SEED1 {y 1.2 s 0.99 r 1.5 b -0.5 flip 90}
SEED1 {y 1.2 x 1.2 s 0.6 r -60 b -0.5}
SEED1 {y 1.2 x -1.2 s 0.5 r 60 b -0.5 flip 90}
}

Posted: Tue Dec 11, 2007 3:04 pm
by MtnViewJohn

Code: Select all

startshape SEED1
background {a -1}
... 

backgrounds

Posted: Wed Sep 03, 2008 6:40 pm
by nyomythus
I've been getting different background colors, in a roundabout way, by employing the .svg format and then importing it into Adobe Illustrator; of course here you can draw a box, give it s color, and push the box to the background; Illustrator and Photoshop are perfectly compatible, voila.

Oh yeah, and scaling down the right-click 'save size' to something like 250/250.

I just started playing with the program -- love it!!!!!!!!

But I wish there was a dictionary of sorts to describe the abbreviations.