mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
Created FAQ (markdown)
parent
49965fbc75
commit
fa455242af
11
FAQ.md
Normal file
11
FAQ.md
Normal file
@ -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`.
|
Loading…
Reference in New Issue
Block a user