Recommended Answers
Jump to PostOf course it won't, when it's incomplete.
https://jsfiddle.net/axboxp2e/2/http://www.html5canvastutorials.com/tutorials/html5-canvas-lines/
Jump to PostThe canvas is a coordinate system. It is entirely pixel based (I may be over simplifying..), and it starts at left 0,0.
Jump to PostOn a canvas, once the pixels are drawn they are permanent, and reference to the individual line draw is lost. If you want to modify individual points you have a few options.
- Create new canvas layers for each draw pass
- keep an array of points (but this still leaves a …
Jump to PostThe canvas is simply a grid. 0,0 -> whatever you define.
Since you know this, you can keep, say, an object that has each item being an array of points:obj = { Line1: [{0,0}, {5,5}, {16,16}]};
You can obviously expand on this simple construct and have a line weight, …
Jump to PostDo you have a real world example of your goal? Or a mock up? Not sure what you are envisioning.
Side note: SVG = Scalable Vector Graphics. It's sole purpose is to be a graphic that is scalable.
All 20 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.