JubeatPlus 3.9.11
Loading...
Searching...
No Matches
KnitColorManager.h
Go to the documentation of this file.
1
10
11#import <UIKit/UIKit.h>
12
13NS_ASSUME_NONNULL_BEGIN
14
22typedef struct {
23 float red;
24 float green;
25 float blue;
26 float alpha;
28
39
43@interface KnitColorManager : NSObject
44
49@property(class, nonatomic, readonly) KnitColorManager *sharedManager;
50
56- (instancetype)init;
57
66- (void)setColorWithType:(unsigned int)type;
75- (UIColor *)makeColor:(const KnitColorComponents *)components;
83- (void)setColorWithArray:(NSArray *)colors;
84
92- (int)getColorType;
93
99- (UIColor *)getBaseColor;
100
106- (UIColor *)getLineColor;
107
113- (UIColor *)getWaveColor;
114
115@end
116
117NS_ASSUME_NONNULL_END
118
119// code: language=Objective-C
120// kate: hl Objective-C;
121// vim: set ft=objc :
Holds the three colours the knit background is drawn with.
Definition KnitColorManager.h:44
UIColor * getWaveColor()
The current wave colour.
Definition KnitColorManager.m:136
UIColor * getBaseColor()
The current base colour.
Definition KnitColorManager.m:126
instancetype init()
Builds the manager.
Definition KnitColorManager.m:50
int getColorType()
The current palette's type, derived from the three colours.
Definition KnitColorManager.m:104
UIColor * getLineColor()
The current line colour.
Definition KnitColorManager.m:131
KnitColorManager * sharedManager
The shared instance.
Definition KnitColorManager.m:39
One colour in a knit palette, as the table at 0x353d78 stores it.
Definition KnitColorManager.h:22
float blue
Blue, 0 to 255.
Definition KnitColorManager.h:25
float red
Red, 0 to 255.
Definition KnitColorManager.h:23
float green
Green, 0 to 255.
Definition KnitColorManager.h:24
float alpha
Alpha, 0 to 1.
Definition KnitColorManager.h:26
One row of the palette table at 0x353d78, 0x30 bytes wide.
Definition KnitColorManager.h:34
KnitColorComponents wave
The wave overlay colour.
Definition KnitColorManager.h:37
KnitColorComponents base
The background fill colour.
Definition KnitColorManager.h:35
KnitColorComponents line
The knit line colour.
Definition KnitColorManager.h:36