Where is the renderer.setColor() function coming from? in melonJS Posted March 15, 2019 · Report reply In the examples/graphics the following call is made on line 45 me.video.renderer.setColor(r); But where does the setColor function come from? the renderer is a me.Object and there is no setColor Funciton in the renderer class. The function does seem to refer to the declaration in me.Color.setColor but this function just returns a color, so to me its unclear how the canvas context knows that the color is set. Even if the setColor is a prototype function, I still don't see where it become part of the renderer object. --- To supplement this thought. I would suggest moving color related functions (the active setting / changing not the Color manipulation functions) inside of the me.Renderer even if it just referencs the function in the me.Color class. It is logical that the programmer will be using the 'renderer' class for custom drawing functions and it would be natural to expect to find references on how to set the color here.