Java Reference
In-Depth Information
var dot = Circle{
translateX: i*(width/samples);
translateY: height-value*height;
radius: 2;
fill: Color.BLUE
}
insert dot into content;
}
var playhead = Line{
startX: bind currentFraction * width;
startY: 0;
endX: bind currentFraction * width;
endY: height;
stroke: Color.RED
}
insert playhead into content;
var topLine = Line{
startX: 0.0
startY: 0.0
endX: 10.0
endY: 0.0
stroke: Color.GRAY
strokeDashOffset: 10
}
var bottomLine = Line{
startX: 1.0
startY: height
endX: 10.0
endY: height
stroke: Color.GRAY
strokeDashOffset: .5
}
var vball = Circle{
radius: 4
fill: Color.GREEN
translateX: 5
translateY: bind height - currentValue*height;
}
var vetical = Group{
translateX: width + 20
content: [topLine, bottomLine, vball]
}
insert vetical into content;
Search WWH ::




Custom Search