charmbracelet / harmonica Goto Github PK
View Code? Open in Web Editor NEWA simple, physics-based animation library ๐ผ
License: MIT License
A simple, physics-based animation library ๐ผ
License: MIT License
Looks like a perfect match for gio.
https://github.com/gioui/gio-example
gio is a golang gui and from a brief look at your code it looks like a very good match for GIO,
gio gives the opportunity to update gui elements on each frame tick for example.
when attempted to run example provided at https://github.com/charmbracelet/harmonica/blob/master/examples/spring/opengl/main.go
returns error as below. wondering if am missing to install any package ?
(base) โ temp go run main.go
# pkg-config --cflags -- gl gl
Package gl was not found in the pkg-config search path.
Perhaps you should add the directory containing `gl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gl' found
Package gl was not found in the pkg-config search path.
Perhaps you should add the directory containing `gl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gl' found
pkg-config: exit status 1
# github.com/go-gl/glfw/v3.3/glfw
vendor/github.com/go-gl/glfw/v3.3/glfw/c_glfw.go:4:10: fatal error: glfw/src/context.c: No such file or directory
4 | #include "glfw/src/context.c"
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
To reproduce, create a new go module with the contents of https://github.com/charmbracelet/harmonica/blob/master/examples/physics/main.go, run go mod tidy
and run go build
I expected a binary to compile, but instead I received:
; go build
# iamadrawist
./main.go:34:24: undefined: harmonica.Projectile
./main.go:35:23: undefined: harmonica.Point
./main.go:77:23: undefined: harmonica.Point
./main.go:78:23: undefined: harmonica.Vector
./main.go:79:23: undefined: harmonica.TerminalGravity
./main.go:81:25: undefined: harmonica.NewProjectile
I think this is because the harmonica github project's most recently published tagged version is 0.1, which does not contain these files.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.