Skip to content

Commit 90f922b

Browse files
committed
should have done this months ago tbh
1 parent 89f84c2 commit 90f922b

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# vibrant
22

3-
[![godoc reference](https://godoc.org/github.com/generaltso/vibrant?status.png)](https://godoc.org/github.com/generaltso/vibrant)
3+
[![godoc reference](https://godoc.org/github.com/dayvonjersen/vibrant?status.png)](https://godoc.org/github.com/dayvonjersen/vibrant)
44

55

66
Extract prominent colors from images. Go port of the [Android awesome Palette class](https://android.googlesource.com/platform/frameworks/support/+/b14fc7c/v7/palette/src/android/support/v7/graphics/) aka [Vibrant.js](https://github.com/jariz/vibrant.js).
@@ -10,7 +10,7 @@ Extract prominent colors from images. Go port of the [Android awesome Palette cl
1010
# install
1111

1212
```
13-
go get github.com/generaltso/vibrant
13+
go get github.com/dayvonjersen/vibrant
1414
```
1515

1616
# usage
@@ -56,13 +56,13 @@ for name, swatch := range palette.ExtractAwesome() {
5656

5757
```
5858

59-
See [godoc reference](https://godoc.org/github.com/generaltso/vibrant) for full API.
59+
See [godoc reference](https://godoc.org/github.com/dayvonjersen/vibrant) for full API.
6060

6161
# bonus round
6262

6363
## reference implementation/command line tool
6464
```
65-
go get github.com/generaltso/vibrant/cmd/vibrant
65+
go get github.com/dayvonjersen/vibrant/cmd/vibrant
6666
```
6767

6868
```
@@ -84,8 +84,8 @@ options:
8484
## webapp
8585

8686
```
87-
go get github.com/generaltso/vibrant
88-
cd $GOPATH/src/github.com/generaltso/vibrant
87+
go get github.com/dayvonjersen/vibrant
88+
cd $GOPATH/src/github.com/dayvonjersen/vibrant
8989
go run webapp.go
9090
# open http://localhost:8080/ in a browser
9191
```

cmd/vibrant/vibrant.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
_ "image/jpeg"
1414
_ "image/png"
1515

16-
"github.com/generaltso/vibrant"
16+
"github.com/dayvonjersen/vibrant"
1717
)
1818

1919
var (

color.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"image/color"
66
"math"
77

8-
colorconv "github.com/generaltso/sadbox/color" // by rodrigo moraes, exported from google code
8+
colorconv "github.com/dayvonjersen/sadbox/color" // by rodrigo moraes, exported from google code
99
)
1010

1111
type Color int
@@ -75,7 +75,7 @@ func unpackColorFloat(color int) (r, g, b float64) {
7575

7676
// given a 24-bit int color (aka HTML hex aka #FFFFFF = 0xFFFFFF = white)
7777
// returns Hue, Saturation, and Lightness components
78-
// uses github.com/generaltso/sadbox/color for conversion because math is hard
78+
// uses github.com/dayvonjersen/sadbox/color for conversion because math is hard
7979
// by rodrigo moraes, exported from google code
8080
func rgbToHsl(color int) (h, s, l float64) {
8181
r, g, b := unpackColor(color)
@@ -84,7 +84,7 @@ func rgbToHsl(color int) (h, s, l float64) {
8484
}
8585

8686
// given Hue, Saturation, and Lightness components, returns a 24-bit int color
87-
// uses github.com/generaltso/sadbox/color for conversion because math is hard
87+
// uses github.com/dayvonjersen/sadbox/color for conversion because math is hard
8888
// by rodrigo moraes, exported from google code
8989
func hslToRgb(h, s, l float64) (rgb int) {
9090
r, g, b := colorconv.HSLToRGB(h, s, l)

webapp.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// +build ignore
22

33
/*
4-
sample webapp to demo the functionality of github.com/generaltso/vibrant
4+
sample webapp to demo the functionality of github.com/dayvonjersen/vibrant
55
66
base64 encoding the images provides the benefit of not having to manage
77
uploaded files or do any javascript fanciness but comes with a performance penalty
@@ -26,7 +26,7 @@ import (
2626

2727
"text/template"
2828

29-
"github.com/generaltso/vibrant"
29+
"github.com/dayvonjersen/vibrant"
3030
)
3131

3232
func index(w http.ResponseWriter, r *http.Request) {

0 commit comments

Comments
 (0)