Howto:Creating a Canvas GUI Widget: Difference between revisions

Jump to navigation Jump to search
Line 151: Line 151:
var height = 320;
var height = 320;
var group = root.createChild("group");
var group = root.createChild("group");
var line = graph.createChild("path", "x-axis")
var line = graph.createChild("path", "hrule")
.moveTo(10, height/2)
.moveTo(10, height/2)
.lineTo(width-10, height/2)
.lineTo(width-10, height/2)

Navigation menu