Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gocs/viewdrag
πΌπ§Ή drag a vertex based image in ebiten
https://github.com/gocs/viewdrag
ebiten go golang
Last synced: about 1 month 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-16T03:24:26.000Z (over 4 years ago)
- Last Synced: 2023-08-12T19:52:47.586Z (over 1 year 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
[![PkgGoDev](https://pkg.go.dev/badge/github.com/gocs/viewdrag)](https://pkg.go.dev/github.com/gocs/viewdrag)
[![Go Report Card](https://goreportcard.com/badge/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`