Hello!
I want to do layered adoptable images. I've been trying to follow this guide on my own, but I'm getting to the code part and I'm a little confused. But first I'll explain what I did since I may have messed up setting up the layers and db.
Layers:
I want to break up my image into these layers.
1: Ink and shading on top of all the colors this will always be black and white.
2: Hair color
3: Base color
4: Eye Color it will be one color I added the white part to the ink layer
5: Accent Color for breed specific features
Additionally I'll have (3) types of markings
6: Body Marking
7: Face Marking
8: Leg Marking
With these layers I set up my adoptables & owned_adoptables db with the following columns:
And I set up my images folder like this:
Now I'm on the part where you customize the code:
So this code specifically that you use for each level or stage of the pet. I attempted to customize it for my set up I'll try to explain what I understand.
$images1 is pulling a layer stored in the images folder. But I don't know how to customize ". $adopt->body . '\\'base.png" this part to generate the images I would need.
My Attempt to do the base color image:
elseif($adopt->currentlevel == 1){
$images1 = array('http:\\\\110.0.24\\berries\\images\\adopts\\unicorn\\body\\' . $adopt->body . '\\'base.png');
I want to do layered adoptable images. I've been trying to follow this guide on my own, but I'm getting to the code part and I'm a little confused. But first I'll explain what I did since I may have messed up setting up the layers and db.
Layers:
I want to break up my image into these layers.
1: Ink and shading on top of all the colors this will always be black and white.
2: Hair color
3: Base color
4: Eye Color it will be one color I added the white part to the ink layer
5: Accent Color for breed specific features
Additionally I'll have (3) types of markings
6: Body Marking
7: Face Marking
8: Leg Marking
With these layers I set up my adoptables & owned_adoptables db with the following columns:
And I set up my images folder like this:
Now I'm on the part where you customize the code:
So this code specifically that you use for each level or stage of the pet. I attempted to customize it for my set up I'll try to explain what I understand.
$images1 is pulling a layer stored in the images folder. But I don't know how to customize ". $adopt->body . '\\'base.png" this part to generate the images I would need.
My Attempt to do the base color image:
elseif($adopt->currentlevel == 1){
$images1 = array('http:\\\\110.0.24\\berries\\images\\adopts\\unicorn\\body\\' . $adopt->body . '\\'base.png');