- 
		Home
	
 
	- 
Jetpack – WP Security, Backup, Speed, & Growth
 
- 
15.0.2
 
- 
Code
 
- 
Classes
 
-  Jetpack_Color 
 
	
	
		
			
				
					
													
								
																			
											| Total Complexity | 
											133 | 
										
																			
											| Dependencies | 
											1 | 
										
																			
											| Dependents | 
											3 | 
										
																	
							 
													
								
																			
											| Total lines | 
											881 | 
										
																			
											| Lines of code | 
											470 | 
										
																			
											| Logical lines of code | 
											307 | 
										
																	
							 
													
								
																			
											| Comment lines | 
											312 | 
										
																			
											| Methods | 
											41 | 
										
																			
											| Properties | 
											1 | 
										
																	
							 
											 
				 
									
							 
		 
	 
	Methods 41
	
		
		
			| Method | 
							Rating | 
													
					
						Maintainability
					
				 | 
										
					Complexity
				 | 
										
					Lines of code
				 | 
					
		
		
					
				| __construct() | 
									A  | 
																	51 | 
													10 | 
													27 | 
							
					
				| toCSS() | 
									A  | 
																	51 | 
													10 | 
													24 | 
							
					
				| getReadableContrastingColor() | 
									A  | 
																	52 | 
													9 | 
													24 | 
							
					
				| toHsl() | 
									A  | 
																	48 | 
													7 | 
													32 | 
							
					
				| toHsvFloat() | 
									S  | 
																	47 | 
													6 | 
													39 | 
							
					
				| toHsvInt() | 
									S  | 
																	50 | 
													6 | 
													29 | 
							
					
				| fromRgbInt() | 
									S  | 
																	59 | 
													7 | 
													13 | 
							
					
				| hue2rgb() | 
									S  | 
																	57 | 
													6 | 
													18 | 
							
					
				| getGrayscaleContrastingColor() | 
									S  | 
																	57 | 
													6 | 
													17 | 
							
					
				| incrementLightness() | 
									S  | 
																	59 | 
													6 | 
													14 | 
							
					
				| incrementSaturation() | 
									S  | 
																	59 | 
													6 | 
													14 | 
							
					
				| incrementHue() | 
									S  | 
																	61 | 
													5 | 
													11 | 
							
					
				| toXyz() | 
									S  | 
																	52 | 
													4 | 
													24 | 
							
					
				| getClosestMatch() | 
									S  | 
																	59 | 
													4 | 
													15 | 
							
					
				| toLabCie() | 
									S  | 
																	54 | 
													3 | 
													21 | 
							
					
				| fromHsl() | 
									S  | 
																	56 | 
													3 | 
													17 | 
							
					
				| fromInt() | 
									S  | 
																	68 | 
													3 | 
													7 | 
							
					
				| toLuminosity() | 
									S  | 
																	64 | 
													3 | 
													8 | 
							
					
				| toGrayscale() | 
									S  | 
																	67 | 
													3 | 
													7 | 
							
					
				| fromHex() | 
									S  | 
																	67 | 
													2 | 
													7 | 
							
					
				| toRgbHex() | 
									S  | 
																	69 | 
													2 | 
													7 | 
							
					
				| getDistanceLuminosityFrom() | 
									S  | 
																	66 | 
													2 | 
													9 | 
							
					
				| getMaxContrastColor() | 
									S  | 
																	67 | 
													2 | 
													7 | 
							
					
				| fromRgbHex() | 
									S  | 
																	78 | 
													1 | 
													3 | 
							
					
				| toHex() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| toRgbInt() | 
									S  | 
																	68 | 
													1 | 
													7 | 
							
					
				| toInt() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| __toString() | 
									S  | 
																	81 | 
													1 | 
													3 | 
							
					
				| toString() | 
									S  | 
																	75 | 
													1 | 
													4 | 
							
					
				| getDistanceRgbFrom() | 
									S  | 
																	64 | 
													1 | 
													9 | 
							
					
				| getDistanceLabFrom() | 
									S  | 
																	64 | 
													1 | 
													9 | 
							
					
				| isGrayscale() | 
									S  | 
																	68 | 
													1 | 
													7 | 
							
					
				| darken() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| lighten() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| saturate() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| desaturate() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| getComplement() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| getSplitComplement() | 
									S  | 
																	75 | 
													1 | 
													4 | 
							
					
				| getAnalog() | 
									S  | 
																	75 | 
													1 | 
													4 | 
							
					
				| getTetrad() | 
									S  | 
																	75 | 
													1 | 
													4 | 
							
					
				| getTriad() | 
									S  | 
																	75 | 
													1 | 
													4 |