InfiniteCanvas
InfiniteCanvas copied to clipboard
Proof of concept for a vector drawing app without canvas boundaries.
Obvious one :) Put strokes onto the undo stack of a `NSUndoManager`. (Will later be easy to transition to a `NSDocument`-based app.)
Paths that are only half visible should be ignored. Only strokes starting and ending (and maybe not exiting?) the current view will be exported. Makes creating snapshots of the current...
- [ ] Add export menu item, ⌘⇧E - [ ] Save whole canvas. Default to transparent background. Seems to be [very simple](http://stackoverflow.com/a/9545213/1460929): ``` NSBitmapImageRep* rep = [self bitmapImageRepForCachingDisplayInRect:self.bounds]; [self...
A simple control with a coarse-grained and _wide_ slider should do the trick. Pen tablet input isn't made for pixel-perfect movements. Changing the stroke width by 1pt should require moving...
Trivial move: ⌘⇧C should bring up the standard color picker. Keep the `NSColor` around and use it to set the color when creating new strokes (in `mouseDown` at the moment).
Strokes are all of the same width right now. A bit of variance makes drawing much more lively. I have no clue how to do that since you can only...
I think this is rather simple. - [ ] Holding the spacebar changes the tool from drawing to panning until you release the key. - [ ] Decouple `CanvasView` coordinate...
Interpolation is now done when drawing. It makes more sense to interpolate once and store points with the two control points already computed. Should speed things up a bit, too....
Ignore (and inform!) about paths that the app cannot draw. Closed paths, for example. Or text.