8000 GitHub - k1LoW/glyph: Icon as Code
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

k1LoW/glyph

Repository files navigation

glyph build

glyph

glyph is a embedded icon framework.

Concept

glyph generates icons by connecting predefined coordinates with lines.

imgimg

package main

import (
	"os"
	"strings"

	"github.com/k1LoW/glyph"
)

func main() {
	g, _ := glyph.New()
	_ = g.Line(strings.Split("b0 d0 h0 j0 j6 h8 d8 b6 b0", " "))
	_ = g.Line(strings.Split("b0 d2 h2 j0", " "))
	_ = g.Line(strings.Split("b2 d4 h4 j2", " "))
	_ = g.Line(strings.Split("b4 d6 h6 j4", " "))
	_ = g.Write(os.Stdout)
}

Included Icon Set

glyph has included icon set.

package main

import (
	"os"
	"strings"

	"github.com/k1LoW/glyph"
)

func main() {
	g, _ := glyph.Included().Get("browser")
	_ = g.Write(os.Stdout)
}

About

Icon as Code

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0