Skip to content

Foliotek/ntc.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ntc.js

A "fork" of ntc.js, originally by Chirag Mehta

Sample Usage

<script type="text/javascript" src="js/ntc.js"></script>

<script type="text/javascript">

  var n_match  = ntc.name("#6195ED");
  n_rgb        = n_match[0]; // RGB value of closest match
  n_name       = n_match[1]; // Text string: Color name
  n_exactmatch = n_match[2]; // True if exact color match

  alert(n_match);

</script>

About

A "fork" of ntc.js, originally by Chirag Mehta at http://chir.ag/projects/ntc/

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%