tint

How can I tint a sprite to white in XNA?

I don't think this is possible just using the color setting in SpriteBatch, so I'm trying to work out a simple shader that would take every pixel and make it white, while respecting the alpha value of the pixel. The answer Joel Martinez gave looks right, but how do I incorporate that when I draw the sprite with SpriteBatch? ...

C# Algorithm to Tint a Color a Certain Percent

I have a color and I want get a tint of that color by a certain percent. So 100% is the color itself, 90% is a slightly lighter color, etc. Basically, it's like adding 10% of opacity to the color, if the color is on a white background. I need to convert the color into a hex HTML color value, so I don't want transparency. Is there an alg...

UINavigationBar tintColor does not always propagate to UIBarButtonItem objects

Greetings! I have set my UINavigationBar's barStyle to UIBarStyleBlack, and the tintColor to a color (other than black so as to get the color/gradient going). That much works well. Now ... let's say I push a new view controller onto the nav controller stack. In this particular VC, I want the nav bar to turn black, but only within this V...

UIActionSheet Tinting

Anyone know anyway to tint uiactionsheet in uikit? ...

tinting a MC with tweener

Hi I would like to tint a movieclip with the tweener class. This is how I tint the mc without the tween: var c:Color=new Color(); c.setTint(0xff0000, 0.8); clouds.transform.colorTransform=c; it works but I would like to give it a smooth transition that's why I would use tweener. Anyone have an idea? ...

tintcolor for navigationBar

When I set the tintcolor using following code it works self.navigationController.navigationBar.tintColor = [UIColor brownColor]; But When I try to set the tint color like - ` UIImage *navigationBarCol = [UIImage imageNamed:@"navigatorBar_color.png"]; self.navigationController.navigationBar.tintColor = [UIColor colorWithPatternImage:...

AS2 TweenLite : using TintPlugin

Hi, I have a problem with the TweenLite Tint Plugin in AS2. Is there a way to decrease the alpha color ? For instance : TweenLite.to ( mc, 1, { tint : 0x586AB4, blurFilter : { blurX : BLUR_FILTER, blurY : BLUR_FILTER }, dropShadowFilter : { blurX : BLUR_X, blurY : BLUR_Y, distance : SHADOW_DISTANCE, strength : SHADOW_STRENGTH, angl...

Why can't I set a custom color-tint for the UINavigationBar?

I want to change the color on the navigation bar and the documentation states not to attempt to change the 'alpha' value. So, how can I set a color that is not the SDK defined values (e.g., [UIColor redColor], brownColor, etc.) if all the constructors provide an alpha value? I tried getting the current alpha value but that did not help...

How do I change the tint of an ImageButton on focus/press

I have an ImageButton in my app and I need to change the tint of the image when the button is pressed/focused. I have the ImageButton set to get its src from an XML file which as follows: <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; <!-- pressed --> <item ...

UIToolbar tint on iOS4

Hi guys, just switched to iOS4 on my iPhone 3Gs and some of my apps broke. One issue I had is that I had a UIToolbar with some buttons, tinted to pink, that worked well on the 3.1.3 OS. After upgrading to iOS 4, the toolbar was still tinted, but the buttons it contained were no longer affected by the tint. The toolbar was pink while th...

Toolbar Tint Colour Change Not changing colour of button in iOS 4 Xcode

Hi. I'm trying to make my app compatible with iOS 4 Multitasking so it stays open when the home button is pressed. At one point, a button is pressed and it opens a new view and changes the tint colour of a toolbar depending on the contents of a txt file automatically. The toolbar also has a button that is linked to an IBAction (it close...

How to tint a transparent PNG image in iPhone?

I know it's possible to tint a rectangular image by drawing a CGContextFillRect over it and setting the blend mode. However, I can't figure out how to do a tint on a transparent image such as an icon. It must be possible since the SDK does it itself on tab-bars in such. Would anyone be able to provide a snippet? ...