Skip to content

Instantly share code, notes, and snippets.

@Noofbiz
Noofbiz / main.go
Created June 10, 2020 20:04
Just hello world in a silly way idk
package main
import "fmt"
type builder struct {
workCh chan string
doneCh, quitCh chan struct{}
o string
}
@Noofbiz
Noofbiz / main.go
Created February 20, 2020 03:45
Static streaming with engo using channels / goroutines to help with blocking
package main
import (
"image"
"image/color"
"image/color/palette"
"math/rand"
"time"
"github.com/EngoEngine/ecs"
@Noofbiz
Noofbiz / main.go
Created February 20, 2020 03:18
Static streaming from an image in engo
package main
import (
"image"
"image/color"
"image/color/palette"
"math/rand"
"time"
"github.com/EngoEngine/ecs"
@Noofbiz
Noofbiz / main.go
Created May 27, 2019 03:52
gleam usage possibilities
package main
import (
"bufio"
"fmt"
"os"
"github.com/Noofbiz/gleam"
"github.com/davecgh/go-spew/spew"
)
package main
import (
"fmt"
"image"
"image/color"
"math/rand"
"sync"
"time"
@Noofbiz
Noofbiz / main.go
Last active December 8, 2018 21:57
a script built in go that attempts to run tests then build engo demos to test if changes break the build
package main
import (
"bytes"
"flag"
"fmt"
"go/build"
"io/ioutil"
"os"
"os/exec"
@Noofbiz
Noofbiz / triangle.go
Created October 26, 2018 16:11
Drew a triangle with Vulkan!
package main
import (
"errors"
"fmt"
"io/ioutil"
"math"
"os"
"runtime"
"time"
@Noofbiz
Noofbiz / keyModifiers.go
Created November 26, 2017 14:58
Handling modifier keys in Engo maybe?
package main
import (
"fmt"
"engo.io/ecs"
"engo.io/engo"
"engo.io/engo/common"
)
@Noofbiz
Noofbiz / fontIssue.go
Created August 5, 2017 05:50
Engo Font Issue test
package main
import (
"image/color"
"log"
"engo.io/ecs"
"engo.io/engo"
"engo.io/engo/common"
)
@Noofbiz
Noofbiz / ImageScaleBG.go
Created June 7, 2017 17:47
Takes all the pictures in the folder in, scales the image while maintaining aspect ratio as big as it can without exceeding 650 x 350, and then creates a 700 x 400 image of the same name in the out folder with a black background.
package main
import (
"image/color"
"io/ioutil"
"log"
"github.com/disintegration/imaging"
)