From fa455242afca9a7631f4829e2f347dc3782094af Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 19 Aug 2017 20:08:13 +0900 Subject: [PATCH] Created FAQ (markdown) --- FAQ.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 FAQ.md diff --git a/FAQ.md b/FAQ.md new file mode 100644 index 0000000..996cee9 --- /dev/null +++ b/FAQ.md @@ -0,0 +1,11 @@ +# Graphics + +## How to draw lines? + +Use [`ebitenutil.DrawLine`](http://godoc.org/github.com/hajimehoshi/ebiten/ebitenutil#DrawLine). Note that this function is only for debugging and prototyping only. + +See [the discussion #137](https://github.com/hajimehoshi/ebiten/issues/137) on other primitive drawings. + +## How to take a screenshot? + +As a `ebiten.Image` is just a standard `image.Image`, you can pass it to, e.g. `png.Decode`. \ No newline at end of file