Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Does it support some color macros? #35

Open
heramerom opened this issue May 7, 2014 · 0 comments
Open

Does it support some color macros? #35

heramerom opened this issue May 7, 2014 · 0 comments

Comments

@heramerom
Copy link

When I coding, I usually define some color macros like this:

#define UIColor4i(r, g, b, a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)/100.0f]
#define UIColor3i(r, g, b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1.0f]
#define UIColor4f(r, g, b, a) [UIColor colorWithRed:(r) green:(g) blue:(b) alpha:(a)]

and I used the "UIColor3i(255, 255, 255)" to set the color.

But I found that this plugin not supports those defines, so I modify it, and it works ok for those defines.

Could you add some color macros to quickly set colors?

Thank you very much to review.

@heramerom heramerom changed the title Does is support some color macros? Does it support some color macros? May 7, 2014
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant