Foliotek / ntc.js

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/

License:Other


Languages

Language:JavaScript 100.0%