help with live wallpapers

alm0614

Active Member
Joined
Nov 18, 2009
Messages
1,238
Reaction score
5
For those of you that have messed with live wallpapers,

1) how can you use colors other than the default green, blue, red, and yellow. I have gone in and removed the green and yellow so i just use red and blue, but does anyone know how to use a completely different color

2) does anyone know how to add a live wallpaper to the livewallpapers.apk so far i have just been replacing stock ones, but if wanted to add a whole different one (i would copy and paste the rs files with a few mods) but need to know what the naming scheme would be as well as if any of the .xmls would need changing

any help is much appreciated
 
A1. you need to change the color codes in the .rs file to the proper values..
IN RED
Code:
void setColor(int c) {
    if (State->mode == 1) {
        // purple
        color([COLOR="Red"]1.0f, 0.0f, 1.0f, 0.8f[/COLOR]);
    } else if (c == 0) {
        // Blue
        color([COLOR="red"]0.0f, 0.4f, 1.0f, 0.8f[/COLOR]);
    } else if (c == 1) {
        // white
        color([COLOR="red"]1.0f, 1.0f, 1.0f, 0.8f[/COLOR]);
    } else if (c == 2) {
        // pink
        color([COLOR="red"]1.0f, 0.4f, 0.8f, 0.8f[/COLOR]);
    } else if (c == 3) {
        // yellow
        color([COLOR="red"]1.0f, 1.0f, 0.0f, 0.8f[/COLOR]);
    }
}

the code is (red, green, blue, transparency)
Code:
ie. (1.0f, 0.0f, 0.f0, 0.9f) would be pure red

to get codes correct for a specific color use an RGB color chart..
IMPORTANT---- RGB code looks like this for Orange for example 255-165-0.. to get the RGB code into the code used by the program you simply devide the RGB values by 255... so... orange.. 255-165-0 would be (1.0, 0.6, 0.0, 0.9)


the transparency i never really mess with.. I belive less # value is more transparent

A2. you got me... lol im not much of a programmer but i would love to find out how to do this
 
i heard the 4th value was the speed of the dot? is it the transparency, with 1.0 being not transparent at all?
 
i heard the 4th value was the speed of the dot? is it the transparency, with 1.0 being not transparent at all?

You know like i said i've NEVER even messed with it so for all i know 0.0 could be opaque and 1.0 being transparent... I am fairly certain however that its not speed because I think that is controlled in a different section
 
I have all mine set to 1.0 and they are not transparent..
 
Back
Top