Enrico Lumetti enrico
  • Joined on 2019-09-21
enrico opened issue enrico/stiletto#14 2020-11-28 22:08:48 +01:00
Add more tools to test the new architecture
enrico opened issue enrico/stiletto#13 2020-11-28 22:06:53 +01:00
Add simple color switcher
enrico commented on pull request enrico/stiletto#12 2020-11-28 21:46:24 +01:00
Tools v2

After having dubbled a bit with implementing the CanvasToolCtx, I came to the conclusion that a tool context is like a widget.
With the current design, CanvasToolState would be an aggregate of all…

enrico pushed to tools_v2 at enrico/stiletto 2020-11-28 21:38:51 +01:00
3c6f161a54 Delegate handwriting to corresponding tool context
enrico created pull request enrico/stiletto#12 2020-11-25 01:17:49 +01:00
Tools v2
enrico pushed to tools_v2 at enrico/stiletto 2020-11-25 01:12:40 +01:00
c72ac1cde3 Initial stage for arbitrary tool support
enrico pushed to master at enrico/stiletto 2020-11-21 21:09:13 +01:00
f42db5fb69 Rename CanvasData to CanvasState
7925cfb2d8 Split stiletto libraries in modules
7f5aae2714 Cargo fmt pass
Compare 3 commits »
enrico pushed to tools at enrico/stiletto 2020-11-21 16:46:51 +01:00
481db6b96f Working finally
enrico merged pull request enrico/stiletto#11 2020-11-21 16:46:51 +01:00
Canvas tools POC
enrico created pull request enrico/stiletto#11 2020-11-21 16:32:19 +01:00
Build tools POC
enrico pushed to tools_enrico at enrico/stiletto 2020-11-21 16:31:17 +01:00
481db6b96f Working finally
enrico pushed to tools at enrico/stiletto 2020-11-21 13:21:47 +01:00
2d961a6e9c A ray of hope
enrico pushed to tools at enrico/stiletto 2020-11-21 12:31:55 +01:00
9369c3113d Mirror mirror of the wall, how the fuck do lens work?
enrico pushed to tools at enrico/stiletto 2020-11-13 19:25:28 +01:00
993081419d Add toolbar binary as a testing ground
enrico pushed to tools at enrico/stiletto 2020-11-13 09:39:26 +01:00
enrico commented on pull request enrico/stiletto#7 2020-11-11 10:35:26 +01:00
WIP: Eraser implementation

After more experimentation, I think we should give even more effort to this feature.

In the final application the user would have a palette of costumizable tools, e.g.: one black pen, one red pen, etc. So some tools would be fixed (like the eraser), while others would be dynamically created.

This means that our Widget data contains something along the line of Vec<CanvasTool>.

enrico commented on pull request enrico/stiletto#7 2020-11-10 18:27:07 +01:00
WIP: Eraser implementation

After thinking a bit more about the statefulness of tools, I think we should implement the two following tools as a test:

  1. pen that changes color while drawing
  2. tool to create a closed polygon by pressing consecutively on points in the canvas
enrico commented on pull request enrico/stiletto#7 2020-11-09 20:45:37 +01:00
WIP: Eraser implementation

Small brain dump:

  1. we need to put the AGPL header on every new file
  2. When a stroke is fully cancelled, it shall be removed from the canvas vector
enrico opened issue enrico/stiletto#10 2020-11-09 20:35:23 +01:00
Add application menu
enrico opened issue enrico/stiletto#9 2020-11-09 20:34:43 +01:00
Show save dialog on quit