CrossFadeColor not working from dark to white - user-interface

This i do not understand, and I don't know how to make this work...
I am trying to make a panel image color fade from a dark green to white like this:
myPanel.GetComponent<image>().CrossFadeColor (colorToFadeTo, fadeTime, true, true);
This do not work... It seems like it keeps the base color (green) and then puts the other color into that color :-/
Can anyone help me with this... Any help is appreciated.

I can't find much information on CrossFadeColor, but I do know it would work as you expect with Color.Lerp since it will change the color, not add it.
You will have to do it in a coroutine, or the Update.

Related

SpriteRenderer Image getting stretched down

I had a spriterenderer for a square but I want to change it from looking like a basic rectangle to having an image instead. So I tried changing the sprite renderer "Sprite" to the image I wanted but whenever I do so the image is looking pixelated, ugly and stretched and I can't rescale it properly.
Before:
After:
The image may look ugly because it is stretched. In your hierarchy, select the GameObject with the SpriteRenderer. Then set the x,y,z scales back to 1.
If it still looks weird, select the image in your assets folder, and play around with the quality & filter settings (Don't forget to click apply). Hopefully this helps with making the image look nicer.
If not, ensure that your image asset is not a low resolution either.
I'm not really sure what you mean about it not rescaling properly. If you could please elaborate then hopefully we can fix it :)

How to change Chart background color in PhpPresentation?

I know how to change background color in slide,
but i can't find how to change background color in chart.
Default Chart
I use a default code from PhpPresentation
Any one can help?
finally i found the answer!
just use this code :
$shape->getFill()->setFillType(Fill::FILL_GRADIENT_LINEAR)
->setRotation(90)
->setStartColor(new Color('FF000000'))
->setEndColor(new Color('FFB1B1B1'));
Below this code
$shape->setFill($oFill);

xamarin three-choice button color

I am using the Three-choice Button component in xamarin, but I don't know of a way to change the button color. The font and shadow ect can be changed, but I would like to change the grey color.
Can anyone provide some insight on how to do this?
I solved this a different way. I am using a normal ios switch, and just changing the background colour of the switch, ie Green, Grey or Orange.
Not exactly the answer to my question, but looks neater than the component did.

Logo looks different after uploading

Hi, in the first picture you can see what logo I want to upload.
But, after uploading it changes it's color specification a little bit, shown in the second picture (right down corner). It adds the black color.
Could you please help me out?
The code I'm using:
axes(handles.axes13)
imshow('logo4.png')
The problem is in the original png. Here, the top of the logo is set as transparent while the bottom is white. So, when you plot the images using imshow, you have this effect. Either you change the logo png or you can pretend as this problem never existed by setting the background color as white when you load the image.
logo4 = imread('logo4.png,'BackgroundColor',[1 1 1]);
imshow(logo4)
The problem is still there, it´s just someone else´s problem now.
profit.

Matching background color for COLOR_GRAYTEXT

(Related question to "Matching windows system colors: light on dark".)
There doesn't seem to be an "official" background color for COLOR_GRAYTEXT. This looks strange to me. Do you know any?
Assuming grayed out things can somehow be enabled, one would guess that both COLOR_3DFACE and the (tabbed) dialog texture will look ok

Resources