add hw2
This commit is contained in:
		
							
								
								
									
										9
									
								
								node_modules/khroma/dist/methods/channel.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								node_modules/khroma/dist/methods/channel.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| /* IMPORT */ | ||||
| import _ from '../utils/index.js'; | ||||
| import Color from '../color/index.js'; | ||||
| /* MAIN */ | ||||
| const channel = (color, channel) => { | ||||
|     return _.lang.round(Color.parse(color)[channel]); | ||||
| }; | ||||
| /* EXPORT */ | ||||
| export default channel; | ||||
		Reference in New Issue
	
	Block a user
	 nik
					nik