OpenLink Software

Usage stats on Colors (Working With)

 Permalink

an Entity in Data Space: 134.155.108.49:8890

Snippets for working with colors A simple RGB object function RGB(r,g,b){ this.r = r; this.g = g; this.b = b; this.ease = function(newRGB,pct){ var newR = this.r + Math.round((newRGB.r - this.r)*pct); var newG = this.g + Math.round((newRGB.g - this.g)*pct); var newB = this.b + Math.round((newRGB.b - this.b)*pct); return new RGB(newR,newG,newB); } this.hex = function(){ var rhex, ghex, bhex; if ((rhex=this.r.toString(16)).length < 2) {rhex = "0"+rhex;} if ((ghex=this.g.toString(16)).length < 2) {ghex = "0"+ghex;} if ((bhex=this.b.toString(16)).length < 2) {bhex = "0"+bhex;} return "#"+rhex+ghex+bhex; } }

Graph IRICount
http://dbkwik.webdatacommons.org5
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] This material is Open Knowledge Creative Commons License Valid XHTML + RDFa
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Copyright © 2009-2012 OpenLink Software