Anyone good with LUA in Watchmaker? - Moto 360

Any modders proficient with LUA programming in the watchmaker app? I'd love to have battery percentages which change color according to the percentage. So maybe 100% to 50% would be green, 50% to 25% would be yellow, and 25% to 0% would be red.

{bl} > 66 and string.format('%.2x%s',(100-{bl})*255/33,'FF00') or {bl} > 16 and string.format('%s%.2x%s','FF',({bl}-16)*255/50,'00') or 'FF0000'
Apply to the color and of the object. It goes gradually from green to yellow to red. I didn't write this but found it...somewhere. Seems to work well.
Sent from my XT1254 using Tapatalk

Related

[APP/EXPERIMENT] Yellow tint test

Ok so I just wanted some1 to test something for me. I want to know if the yellow tint can be cancelled with a gradient overlay. So done an little app to test this.
Need some1 who has this yellow tint really bad and can see it very easily.
Again this is just a test and may amount to nothing, I need volunteers as I don't have this defect enough to see it accurately at 20% brightness.
The app is safe as there is no burn in mode yet. Just the ability to custom create a 3 point gradient from left to right with variable pixel widths for each segment.
So if anyone can test that has this really bad, that would be great.
IMPORTANT:
This little app has no burn in method yet so completely safe.
THIS IS NOT A THREAD TO ***** OR COMPLAIN AT SAMSUNG!!!
All I want to know is does this cancelling gradient help.
Start, Mid, End buttons set the settings panel to control the points (LEFT to RIGHT)
P = position
R = red
G = green
B = blue
A = alpha
So if you have a yellow tint, then you want to start with blue and alpha etc!
Updated the app to default all 3 points to 119,119,119 a 255 so the starting points are the same col as the bg
UPDATED
Not ment to be that user friendly at the moment
If it does actually do something, then I will probably have nice sliders and ability to save setting etc. Just cant be arsed doing that if it's a none starter.
Sent from my GT-I9100 using XDA Premium App
Mine has the yellow tint on the left side but I'm having trouble figuring out how to use this app. It does seem to be changing gradients.
I should have made the gradients to default to gray, will alter and put new version up later today, may do a little vid on how to use also
Sent from my GT-I9100 using XDA Premium App
updated and put in 2 lines to make it easier to show you where to look
Cool app. Seems to help if you tweak it right. What exactly does the "BURN" button do?
dinan said:
Cool app. Seems to help if you tweak it right. What exactly does the "BURN" button do?
Click to expand...
Click to collapse
Well, if some1 can manage to do an inverse gradient to their yellow tint, then I would enable saving in the app, and enable burn-in, that does just that, full brightness pixel values for extended periods of time to tint the display inversely to the yellow tint, thus attempting to lessen the effect.
Ideally I want some1 with a bad example tint who also has no way to return their phone to try it

[FIX] Optimum Color Control Values for Purple Screen/Grain Issue [JB]

Well, after 5 months of looking out for the best values, I've experimented and all and found out these to be the best. Even at lowest brightness, the screen is crisp and clear just like it's supposed to be.
People who have the Purple Screen issue, I highly recommend you use these values.
Requirements -
1. Franco Kernel Updater (TKT wouldn't give that much brightness/crispyness to the screen)
2. ICS Gradient Fix (Check Signature)
3. Franco Kernel
First up, flash Franco's latest kernel.
Secondly, make sure you don't have any 2 or more applications which have Color Control options (Like, Franco Kernel Updater and TKT - Remove TKT and stay with Franco). If you do have 2 or more installed, please set all values to default on all applications including Franco's. (In TKT, click on menu and select reset preferences and reboot).
Third, fire up Franco Kernel Updater and get to the CC options and set these :
Color Multipliers -
Red - 280
Green - 292
Blue - 350
Gamma -
Red - 4
Green - 0
Blue - 9
Disable Contrast Adaptive Brightness - Yes (Tick)
Contrast Control : -24
OMAP Gamma - 1.2
These values work BEST with MoDaCo's JB Build. Tested on Jr1, Jr.1.1, Jr2.
Please note : This is simply a band aid, not a total fix. The purple screen and grain issue is probably a hardware issue. This settings are extremely crisp on my device. You need to get adapted to them.
Thanks to -
1. Franco for his amazing kernel and application.
2. Morfic for introducing contrast control into the kernel world and of course for his kindness. (You're the sweetest developer I've talked to).
Best of luck with these settings guys!
Please, don't forget to click "Thanks"!
It made everything look over-saturated for me.. plus, is it safe to jack up the settings like this?
It did improve the grainy screen on low brightness problem, though.
Well, i think the best values i've EVER Seen.
Oh dear, so f****ng awesome.
via Google Galaxy Nexus
Made my eyes hurt.. Too cold.. I'm trying to get my screen as close to 6500k as possible.
Sent from my Galaxy Nexus using Tapatalk 2
Thank you for this! By far the best optimization of colors I've ever seen. Maybe colors are a bit over-saturated but thats how Super AMOLED should produce.
Doesn't lacking the values up that high create burn in???
Sent from my Galaxy Nexus using xda premium
craigbailey1986 said:
Doesn't lacking the values up that high create burn in???
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Try reducing every multiplier value by 40. 280 to 240, 292 to 252 and 300 to 260.
This can never be an all-in-one "fix" because of the way screen technology works. Everyone's screen will have different degrees of the problem itself (purple tint & grain), on top of that they will all have a slightly different color temperature, contrast level, saturation etc. By providing the values that worked for you, you're just going to have a thread where half the people think it looks great, half think it looks awful, and everyone thinks everyone else is crazy.
A better idea might be to describe the steps you took to arrive at your own numbers, things you looked for, how you tweaked them to get to the best values.
Look Excellent to me - Screen absolutely Pops, so vivid and the gradient issues are not visible.
Thanks so much!
Those high values are gonna kill your screen
OP settings work well for me (similar to my 200 215 280, -2 0 10, -23, CAB off), but OMAP always makes things worse IMO. With OMAP at 1.2 I instantly see banding again where with it off the gradients are smooth. OP settings with OMAP 1.0 are excellent however, reducing the magenta and yellowing I was seeing with my others. I am worried about the burn-in though..
What's this about burn in? Do these settings cause it?
I sort-of mispoke. Burn-in is possible, but high multipliers are more worried to wear out those pixels/degrade them faster.
Edit: I'm going for more of a "Trinity Blue" sort of solution now: 215 235 280, -2 0 15, -24, CAD off, OMAP unset. Still trying to find that balance that gets rid of the magenta/yellow at all points.
Okay guys try out 180,192 and 250 as the color multipliers. No burn issues then. I'm on it right now. Its great!
I'm using Trinity kernel, TKT, and Display Tester Pro for calibration. The gamma test shows that my particular settings should be red=2, green=3, blue=2. The color gamma settings are not relative to one another and are not "mixed together" for adjusting color. Each one is a separate adjustment for that color's correct level of brightness for midtones, relative to darkest and lightest levels. Together, the three settings add up to correct gray brightness levels, not to correct gray colorlessness.
If you look at a chart containing only black, 50% gray, and white, the color multipliers should be adjusted to remove any trace of color tint from the gray. The easiest way to do it is set the weakest color to 200 and reduce the other two colors until the gray has no color tint at all. The properly set color gamma settings, on the other hand, should make the 50% gray have the correct lightness level.
If you have yellow tint, there's not enough blue. Magenta tint means not enough green. Cyan tint, not enough red.
The color multipliers, unlike the gamma settings, are relative to one another. Once you have them set correctly relative to one another, moving them all up or all down together pnly changes the overall brightness of the display. The wrong overall brightness level will remove detail from either the black end or the white end. Too much brightness is also bad for the screen, not to mention battery drain.
So anyway I'll shut up now and I hope everyone gets their screens looking perfect.
gsm gnex / cm9 / trinity / 1420 MHz
for whatever reason trinity seems to be giving me better screen color, but im sure I could do the same with franco, anyways, my gamma settings are untouched, I found that modifying the color to these values makes the purple tint go away for me:
Red:135
Green:135
Blue:190
Trinity Contrast -15 to -25
Have you tried adjusting it for 18% gray? I can nail it pretty close with 180,150,190 and 8,0,8 but gamma is a complete ***** on this display...
strumcat said:
I'm using Trinity kernel, TKT, and Display Tester Pro for calibration. The gamma test shows that my particular settings should be red=2, green=3, blue=2. The color gamma settings are not relative to one another and are not "mixed together" for adjusting color. Each one is a separate adjustment for that color's correct level of brightness for midtones, relative to darkest and lightest levels. Together, the three settings add up to correct gray brightness levels, not to correct gray colorlessness.
If you look at a chart containing only black, 50% gray, and white, the color multipliers should be adjusted to remove any trace of color tint from the gray. The easiest way to do it is set the weakest color to 200 and reduce the other two colors until the gray has no color tint at all. The properly set color gamma settings, on the other hand, should make the 50% gray have the correct lightness level.
If you have yellow tint, there's not enough blue. Magenta tint means not enough green. Cyan tint, not enough red.
The color multipliers, unlike the gamma settings, are relative to one another. Once you have them set correctly relative to one another, moving them all up or all down together pnly changes the overall brightness of the display. The wrong overall brightness level will remove detail from either the black end or the white end. Too much brightness is also bad for the screen, not to mention battery drain.
So anyway I'll shut up now and I hope everyone gets their screens looking perfect.
gsm gnex / cm9 / trinity / 1420 MHz
Click to expand...
Click to collapse
arzbhatia said:
Okay guys try out 180,192 and 250 as the color multipliers. No burn issues then. I'm on it right now. Its great!
Click to expand...
Click to collapse
It's been discussed few times already - going above 200 can lead to screen burn in. On SAMOLED screens blue color wear out first and peeps really shouldn't touch this setting. Better set lower red/green values. Screen will look a bit darker so don't cranck up contrast too much, -10 should be good enough.
herzzreh said:
Made my eyes hurt.. Too cold.. I'm trying to get my screen as close to 6500k as possible.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
look at the graphs.
http://forum.xda-developers.com/showpost.php?p=29037317&postcount=1
herzzreh said:
Have you tried adjusting it for 18% gray? I can nail it pretty close with 180,150,190 and 8,0,8 but gamma is a complete ***** on this display...
Click to expand...
Click to collapse
You can see where your gamma should by by installing the free version of Display Tester from the Play Store. Go to Color, Gamma, and slide the gray screen to the left to see the red page. Find the vertical bar that most closely matches the red bacground. The number on that bar is where your gamma should be set for that color. Mine is spot on at 2.3. Then slide to green page and do the same. Then the blue page. My green gamma reading is 2.8, meaning it isn't quite as bright as the red or blue, so I have to turn it up a hair. My blue is good at 2.3. The adjustment sliders in TKT only give me whole-number choices, so I get as close as possible with 2, 3, 2. I'm just guessing there, since TKT doesn't have normal gamma increments. Anyway good luck taming your gamma.
galaxy nexus (gsm) / cm9 / trinity @ 1.4GHz

Color Calibration. Before / after

Just to share this with you guys..
With every display that I use, I try to have it calibrated and I was trilled that with the nexus I had so much control over the screen!! Never had a phone with so much control
You have here my results.
Just be aware that the "before" is with trinity kernel stock color scheme and I'm really grateful that his market tool and not to forget franco.kernel tool too,made possible for me to calibrate...
I used a 18% gray card to make sure white balance was spot on when converting the raw files into smaller jpg.
I did find that sometimes the changes did not apply so I did a double check by exaggerating the values when making the changes. Contrast was one of them..
On the graphs, the white dotted line is the reference
Only problem with this is that not all screens are the same so these settings will not work for everybody
My calibrated values
tint
red 200
green 169
blue 178
gamma
red 2
green 0
blue 0
disable dynamic contrast
contrast value 0
If you use franco.kernel tool
gamma 1.0
If you like image with more contrast, i would set it between -6 to -10
Very interesting and the before/after photos look good. Is there a problem with burn in?
Sent from my Galaxy Nexus
Looks a little red for me. Your results look great though.
The improvement in the color of the dog photo is drastic. Trinity kernel does come with the blue really cranked up for some reason. Looking good now.
galaxy nexus (gsm) / cm9 / trinity @ 1.4GHz
chw2006 said:
Looks a little red for me. Your results look great though.
Click to expand...
Click to collapse
It is too red for me also
sd
little red for me as well, but i'm loving it.
sqjzb said:
little red for me as well, but i'm loving it.
Click to expand...
Click to collapse
for whatever reason trinity seems to be giving me better screen color, but im sure I could do the same with franco, anyways, my gamma settings are untouched, I found that modifying the color to these values makes the purple tint go away for me:
Red:135
Green:135
Blue:190
Trinity Contrast -15 to -25
If you look at the calibrated rgb graph, red is a few points bellow reference. And again if you look at the color temperature line it is a little above 6500k. It is normal for first reaction about red when actually your missing blue because almost every screen you are used too has to much blue on it..yet again there's the tint problem on a bunch of nexus too.. if I get my hands on one of them I'll post here the results
Edit: for you "red guys" try to invert the red with blue values
Red 178
Blue 200
BUT keep gamma the same.
Sent from my Galaxy Nexus using Tapatalk 2
Thanks for sharing this. I can never get the color settings right. This helps immensely.
sublimaze said:
Thanks for sharing this. I can never get the color settings right. This helps immensely.
Click to expand...
Click to collapse
you're welcome.
Outstanding. I was wondering if using my colorometer would work on the phone. Looks like I have a nice project for this weekend I need to revalidate my HT and PC too so might as well throw the phone in there too :O
Use hcfr and the color swatch app from the Market..
If you get stuck on gamma, don't sweat it too much.. I spent an hour trying to get it right, no luck with this screen. Colors are bang on though.
For those who don't know, 6500k is the reference color temperature. To most people it looks too red or even yellow, but it's what the whole publishing and photography world uses.
Sent from my Galaxy Nexus using Tapatalk 2
herzzreh said:
Use hcfr and the color swatch app from the Market..
If you get stuck on gamma, don't sweat it too much.. I spent an hour trying to get it right, no luck with this screen. Colors are bang on though.
For those who don't know, 6500k is the reference color temperature. To most people it looks too red or even yellow, but it's what the whole publishing and photography world uses.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
or you can install mxplayer,
get from here:
http://www.avsforum.com/t/948496/avs-hd-709-blu-ray-mp4-calibration
the mp4 version, extract it, goto to:
ColorHCFR Fields folder,
10% Grayscale folder
and use that files with mxplayer.
My gamma is 99% spot on. I go for 2.3x since with amoled screen the black mml is almost zero, you will not sacrifice shadow content and have a great contrast
I don't get it, how you use hcfr with android? I tried but I just can test my monitor (pc) =/ is there a guide or something?
the way I do right now is testing with http://www.lagom.nl/lcd-test/ and setting manually parameters on phone until it looks great.
badtzo said:
I don't get it, how you use hcfr with android? I tried but I just can test my monitor (pc) =/ is there a guide or something?
the way I do right now is testing with http://www.lagom.nl/lcd-test/ and setting manually parameters on phone until it looks great.
Click to expand...
Click to collapse
you don't !! you use a laptop with the colorimeter connected to it.
your phone just plays the mp4 for calibrating your screen.
adolfotregosa said:
you don't !! you use a laptop with the colorimeter connected to it.
your phone just plays the mp4 for calibrating your screen.
Click to expand...
Click to collapse
Yup, just like you use it to calibrate your HT screen. I run a long usb cable to my PC and use a DVD I burned with an ISO of test screens.
Thanks for the tips on test screens for the phone. saves me the time searching them out
I was searching on web I found that I need a meter, for that is the usb port right? (like spyder2 or EyeOne) mmm I was conecting my phone XD first time trying this tools. Now I understand what all this is about.
That looks that I will be doing this as usual =/ with my only 2 eyes :cyclops: meter XDD ohh wait that's just one of them xDD
well thanks for answer and that pic looks great. Right now I'm on CM10 and config my screen with their "advance" tool and comparing to the webpage I shared. That looks good too but I perceive a little bit reddish on dark colors. Thats so F******* better than blue one XD now looks like Super Amoled plus the contrast is pretty similar to SGS3.
Great post, thank you!
Excellent information, thanks!
Sent from my Galaxy Nexus using xda premium
here are my settings :
color multiplliers
red:200
green:150
blue:210
red: -3
green: 0
blue: 2
trinity : 0
gamma interface : 1

Notification light colors?

What are all of the colors that people have found out can be make from the notification light? So far ive gotten green,blue,red,light blue, light green, and a weird light green with orange dot in the middle color.
X-dude said:
What are all of the colors that people have found out can be make from the notification light? So far ive gotten green,blue,red,light blue, light green, and a weird light green with orange dot in the middle color.
Click to expand...
Click to collapse
Do you have White or Titanium ?
Lol, only three, R G B.
There is no light blue or light green, just your proximity sensor dimming the colour depending on your ambient lighting intensity. Dark room, light led, bright room, bright led.
To get custom colours, you need third party apps like Light Manager or Light Flow. However, after using Light Flow for a day, I can say, other than R G B, no colour appear to be prominent! But I've also heard this is a problem with the Grey units, but White ones, on white ones colours come out perfect it has been mentioned.
Sent from my GT-N7100
I have a white one and I can make every color but no shades.
GNoteII
The only accurate color other than r g b that the grey version is capable of is cyan. The rest are ****.
Sent from my Note II using Tapatalk
i thought LED can mix any color u like by RGB, depends on the kernel
btw, i just saw white, blue, green and red appeared on my note2
For those using Light Manager and/or Light Flow, which one has the best results on Galaxy Note 2? Any issues?
I'm reading A LOT of bad comments on Brazilian Play Store from S III users about Light Flow, and I'm afraid of messing up things here!
Don't be afraid of messing anything, if something goes wrong just uninstall the app.
And afaik, Light Manager is more consistent than Light Flow. It doesn't mess with your 'Accessibility' options. But I've seen that it drains battery in advanced mode, so better use it in Normal mode.
Sent from my GT-N7100
jujuburi said:
Don't be afraid of messing anything, if something goes wrong just uninstall the app.
And afaik, Light Manager is more consistent than Light Flow. It doesn't mess with your 'Accessibility' options. But I've seen that it drains battery in advanced mode, so better use it in Normal mode.
Sent from my GT-N7100
Click to expand...
Click to collapse
Thanks!
I was afraid because I read some comments related to an issue that messed up colors "forever". And something like eternal notifications until reboot. Of course, these could be solved with a full wipe.
Thanks for the reply.. it helps. .
Sent from my GT-N7100 using xda app-developers app

What display color settings are you using?

As topic says, what color settings are you using? Any of the preset profiles or your own expert settings? I have been playing around with the settings in the expert mode, but can't really find anything that looks better than the auto setting.
If you are using your custom expert settings, please post a screenshot of it here.
According to some reviews I've read, Expert with the warmth cranked all the way up was the "most accurate". I didn't really like how this looked as it just made the display look more red, not necessarily "warmer". I settled on Expert with the Red and Blue sliders dialed back one notch. I also cranked up the saturation one step and dialed back the sharpness slightly. This resulted in a bit of a warmer and sharper image that I'm content with but I really miss KCAL.
EDIT: Anandtech just released their review of this phone. They recommend that you use the "Expert" Color settings and turn the blue slider all the way down. It looks better but the display is still way too blue.
I use Expert.
Color Temperature is at 50%.
Red is at 100%.
Green is at 100%.
Blue is at 50%.
Saturation is at 100%
Hue is at 50%.
Sharpness is at 50%.
Color Filter is set to off.
I use Expert. Im searching a better black
Color Temperature is at 100%.
Red is at 0%.
Green is at 100%.
Blue is at 0%.
Saturation is at 100%
Hue is at 75%.
Sharpness is at 75%.
Color Filter is set to off.
try it!
Using expert
Saturation 50%
Hue 25%
Sharpness 0
Color temperature 75%
Red 50%
Green 75%
Blue 25%
This is what looks best to my eyes after time spent fiddling with it.
Auto with Comfort View "always on".
Now that and if I switch off comfort view or look at other phones I can clearly figure out the "blueness". The comfort view on the G7 is an excellent setting and something users should use of a couple of hours and feel the difference.
What makes color filer

Categories

Resources