add hw2
This commit is contained in:
		
							
								
								
									
										8
									
								
								node_modules/khroma/dist/methods/complement.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								node_modules/khroma/dist/methods/complement.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| /* IMPORT */ | ||||
| import adjustChannel from './adjust_channel.js'; | ||||
| /* MAIN */ | ||||
| const complement = (color) => { | ||||
|     return adjustChannel(color, 'h', 180); | ||||
| }; | ||||
| /* EXPORT */ | ||||
| export default complement; | ||||
		Reference in New Issue
	
	Block a user
	 nik
					nik