diff options
| author | faiface <faiface2202@gmail.com> | 2019-05-06 18:44:54 +0200 |
|---|---|---|
| committer | faiface <faiface2202@gmail.com> | 2019-05-06 18:44:54 +0200 |
| commit | 8a67ed9e640b830d307bfa56d7f445673cc576ed (patch) | |
| tree | ed69819b6ff49ba5ba6b589d7136c45501b6a5e2 /examples/paint | |
| parent | eb2426aae90421f4ca6940b623a7f94d73b8662f (diff) | |
| download | gui-8a67ed9e640b830d307bfa56d7f445673cc576ed.zip | |
examples: add READMEs for the ramaining examples
Diffstat (limited to 'examples/paint')
| -rw-r--r-- | examples/paint/README.md | 9 | ||||
| -rw-r--r-- | examples/paint/screenshot.png | bin | 0 -> 39552 bytes |
2 files changed, 9 insertions, 0 deletions
diff --git a/examples/paint/README.md b/examples/paint/README.md new file mode 100644 index 0000000..c02047d --- /dev/null +++ b/examples/paint/README.md @@ -0,0 +1,9 @@ +# Paint + +This is a simple paint program. Pick colors on the right, draw on the rest. + + + +The canvas in the middle is controlled by a goroutine. Each of the 8 color pickers is also controlled by its own goroutine. When clicked, the color picker sends its color to the canvas over a channel. The canvas listens on the channel and changes its color. + +Uses [`fogleman/gg`](https://github.com/fogleman/gg) for drawing lines. diff --git a/examples/paint/screenshot.png b/examples/paint/screenshot.png Binary files differnew file mode 100644 index 0000000..34b4889 --- /dev/null +++ b/examples/paint/screenshot.png |