Last active
December 26, 2015 00:29
-
-
Save tany3/7064513 to your computer and use it in GitHub Desktop.
UIColorで名前指定できる色の一覧。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NS_CLASS_AVAILABLE_IOS(2_0) @interface UIColor : NSObject <NSSecureCoding, NSCopying> { | |
@private | |
} | |
// Some convenience methods to create colors. These colors will be as calibrated as possible. | |
// These colors are cached. | |
+ (UIColor *)blackColor; // 0.0 white | |
+ (UIColor *)darkGrayColor; // 0.333 white | |
+ (UIColor *)lightGrayColor; // 0.667 white | |
+ (UIColor *)whiteColor; // 1.0 white | |
+ (UIColor *)grayColor; // 0.5 white | |
+ (UIColor *)redColor; // 1.0, 0.0, 0.0 RGB | |
+ (UIColor *)greenColor; // 0.0, 1.0, 0.0 RGB | |
+ (UIColor *)blueColor; // 0.0, 0.0, 1.0 RGB | |
+ (UIColor *)cyanColor; // 0.0, 1.0, 1.0 RGB | |
+ (UIColor *)yellowColor; // 1.0, 1.0, 0.0 RGB | |
+ (UIColor *)magentaColor; // 1.0, 0.0, 1.0 RGB | |
+ (UIColor *)orangeColor; // 1.0, 0.5, 0.0 RGB | |
+ (UIColor *)purpleColor; // 0.5, 0.0, 0.5 RGB | |
+ (UIColor *)brownColor; // 0.6, 0.4, 0.2 RGB | |
+ (UIColor *)clearColor; // 0.0 white, 0.0 alpha | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment