having a canvas element in my html page,
i can draw graphs, using the rgraph library…
Now i would like to add a certain text element on there
which i can do by printing it like this:
RGraph.Text(this.canvas.getContext("2d"), "Verdana", 8, 30, 125, 'TECHNOLOGY', "top", "left", false, 270, '#000000');
now, there is only 1 argument for color, and it’s the text background color
i would need to change it’s text color dynamically. does anyone know how to change the text color of that item?
Many of the RGraph methods (though not all) use whatever the current strokeStyle or fillStyle settings are. So for example: