MCPcopy
hub / github.com/jabbany/CommentCoreLibrary / toRGB

Function toRGB

src/scripting/Unpacker.js:295–301  ·  view source on GitHub ↗
(number)

Source from the content-addressed store, hash-verified

293 fillRule:"nonzero"
294 };
295 var toRGB = function(number){
296 var string = parseInt(number).toString(16);
297 while(string.length < 6){
298 string = "0" + string;
299 }
300 return "#" + string;
301 };
302 var applyStroke = function(p, ref){
303 __(p, {
304 "stroke": ref.line.color,

Callers 1

Unpacker.jsFile · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected