Draw a line to this point from starting point. Again x and y being the coordinate.
CSS color of the line
A method to actually make javascript draw a line
Before you start drawing a new line with different color, you will have to call "beginPath".
About text
fillText(text,x,y)
strokeText(text,x,y)
strokeStyle
fillStyle
font
textBaseline
Print the text with solid color within. Text color is determined by fillStyle().
Print the text with only color the outline of the text. Text color is set by strokeStyle().
CSS color for text that call strokeText
CSS color for text that call fillText
CSS font style such as "bold, 10px, san-serif"
This is a little bit tricky to explain. We will need another demo. The value for this propery can be "top", "hanging","middle", "alphabetic", " eographic" and "bottom". Default value is "alphabetic".
댓글