From 8a67ed9e640b830d307bfa56d7f445673cc576ed Mon Sep 17 00:00:00 2001 From: faiface Date: Mon, 6 May 2019 18:44:54 +0200 Subject: examples: add READMEs for the ramaining examples --- examples/paint/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 examples/paint/README.md (limited to 'examples/paint/README.md') 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. + +![Screenshot](screenshot.png) + +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. -- cgit v1.2.3