Skip to content

🚀 Get Started

🛠️ Requirements

There are some extra things you will need to use Vuelto.

  • 🖥️ A C compiler
  • 🔧 A Go compiler (Go 1.18 and above)
  • 🪟 Xorg/Wayland development packages (For Linux only)
  • 🖱️ Supported platform For a installation guide, go here.

📦 Go package

We have a Go package published, so run this command to add it to your go.mod:

go get vuelto.pp.ua@latest

🌟 Examples

All of our examples are inside the examples directory, so take a look there is you want a example. Here one small example of how easy Vuelto is:

package main

import (
 vuelto "vuelto.pp.ua/pkg"
)

func main() {
 w := vuelto.NewWindow("Image Example - Vuelto", 800, 600, false)
 ren := w.NewRenderer2D()

 image := ren.LoadImage("test/image.png", 0, 0, 0.5, 0.5)

 for !w.Close() {
  image.Draw()
  w.Refresh()
 }
}