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

Function toRGB

experimental/scripting/deprecated/libraries/libBase.js:98–104  ·  view source on GitHub ↗
(number)

Source from the content-addressed store, hash-verified

96 function GraphicsContext(shape){
97 // Send data across
98 var toRGB = function(number){
99 var string = parseInt(number).toString(16);
100 while(string.length < 6){
101 string = "0" + string;
102 }
103 return "#" + string;
104 };
105 var updateObject = function(method, params){
106 self.postMessage(JSON.stringify({
107 "action":"CallObjectMethod",

Callers 2

GraphicsContextFunction · 0.70
libBase.jsFile · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected