LineFactory = type { ...added methods below... }
| Method signature | Return type |
|---|---|
from(pt:Point)length(len:Number)direction(radians:Number)on(canvas':DrawingCanvas) |
Line |
| Create a line from pt that has length len, and in direction radians on canvas' | |
from(start':Point)to(end':Point)on(canvas':DrawingCanvas) |
Line |
| Create a line from start' to end' on canvas' | |