1

I paint gray circle in colors:

enter image description here

for painting I use this method: Is that possible to change the color for an image programmatically?

So circles above Fuel and Penalty look good - I use standard colors from UIColor (greenColor and redColor) But circle above Washing looks terrible - I use

  [UIColor colorWithRed:143.0/255.0 green:200.0/255.0 blue:66.0/255.0 alpha:1]

One source image colored by different colors:

fuelCircle.image = [Colors useColor:[UIColor greenColor] forImage:fuelCircle.image];
washingCircle.image = [Colors useColor:[Colors green] forImage:washingCircle.image];
penaltyCircle.image = [Colors useColor:[UIColor redColor] forImage:penaltyCircle.image];

How can I set my colors which will look perfect?

UPD: If I use color [UIColor colorWithRed:0 green:1 blue:0 alpha:1]; Washings circle will be look like Fuel. So, maybe I need find right color balance.

Community
  • 1
  • 1
Konstantin.Efimenko
  • 1,242
  • 1
  • 14
  • 38

0 Answers0