https://github.com/gocs/viewdrag
๐ผ๐งน drag a vertex based image in ebiten
https://github.com/gocs/viewdrag
ebiten go golang
Last synced: 2 months ago
JSON representation
๐ผ๐งน drag a vertex based image in ebiten
- Host: GitHub
- URL: https://github.com/gocs/viewdrag
- Owner: gocs
- License: apache-2.0
- Created: 2020-02-24T16:00:27.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-16T03:24:26.000Z (over 4 years ago)
- Last Synced: 2025-01-02T10:45:23.558Z (4 months ago)
- Topics: ebiten, go, golang
- Language: Go
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# viewdrag
[](https://pkg.go.dev/github.com/gocs/viewdrag)
[](https://goreportcard.com/report/github.com/gocs/viewdrag)viewdrag will drag and drop the image in the viewport.
accepts ebiten.image only as sprite or;
accepts ebiten.image with vertices and indeces as mesh### running the app
This is basic dragging the view implementation.
This is ebiten's dragging example (with only one "ebiten"): `go run ./cmd/1_basic/main.go`
This creates a mesh if you want to set the mesh upon initializing the app: `go run ./cmd/1_basic_with_mesher/main.go`
This sets the mesh every loop: `go run ./cmd/1_basic_with_mesh/main.go`
## license
`Apache License 2.0`