Compare commits
18 Commits
0f86e21376
...
master
Author | SHA1 | Date | |
---|---|---|---|
c9c29f980d | |||
4b811dc8d7 | |||
62eed5a9ee | |||
1dd6fa470e | |||
c1b138aad1 | |||
073f79aa79 | |||
b2515749ae | |||
60050187f8 | |||
20dc1fcbd9 | |||
67a301284e | |||
884f2f0f80 | |||
7f3ce1a8e1 | |||
f344c9ca06 | |||
b6bd4382c1 | |||
07cfe80c08 | |||
0014ae7eee | |||
48ac50f64c | |||
d5f9fb4b86 |
22
.drone.yml
22
.drone.yml
@ -3,7 +3,7 @@ name: default
|
||||
|
||||
workspace:
|
||||
base: /go
|
||||
path: src/deadbeef.codes/steven/mandelmapper
|
||||
path: src/code.stevenpolley.net/steven/mandelmapper
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
@ -20,22 +20,4 @@ steps:
|
||||
- name: publish
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: registry.deadbeef.codes/mandelmapper
|
||||
|
||||
- name: production
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host: 10.69.71.105
|
||||
port: 22
|
||||
username:
|
||||
from_secret: sshusername
|
||||
password:
|
||||
from_secret: sshpassword
|
||||
script:
|
||||
- echo Informing spud to pull latest container and infrastructure...
|
||||
- cd deadbeef.codes-infrastructure
|
||||
- git pull
|
||||
- docker-compose pull >/dev/null
|
||||
- echo Restarting updated services...
|
||||
- docker-compose up -d >/dev/null
|
||||
- echo Done.
|
||||
repo: registry.stevenpolley.net/mandelmapper
|
||||
|
@ -1,5 +1,5 @@
|
||||
FROM scratch
|
||||
LABEL maintainer="himself@stevenpolley.net"
|
||||
COPY mandelmapper /
|
||||
COPY ca-certificates.crt /etc/ssl/certs/
|
||||
EXPOSE 6161:6161
|
||||
ENTRYPOINT ["/mandelmapper"]
|
@ -1,4 +1,6 @@
|
||||
[](https://drone.deadbeef.codes/steven/mandelmapper)
|
||||
|
||||
|
||||
This is currently deployed to a ARMv8 cluster, viewable at https://mandelmap.deadbeef.codes
|
||||
This is currently deployed to a ARMv8 cluster, viewable at https://mandelmap.deadbeef.codes
|
||||
|
||||
|
3408
ca-certificates.crt
3408
ca-certificates.crt
File diff suppressed because it is too large
Load Diff
5
go.mod
Normal file
5
go.mod
Normal file
@ -0,0 +1,5 @@
|
||||
module deadbeef.codes/steven/mandelmapper
|
||||
|
||||
go 1.22
|
||||
|
||||
require golang.org/x/image v0.22.0
|
4
go.sum
Normal file
4
go.sum
Normal file
@ -0,0 +1,4 @@
|
||||
golang.org/x/image v0.18.0 h1:jGzIakQa/ZXI1I0Fxvaa9W7yP25TqT6cHIHn+6CqvSQ=
|
||||
golang.org/x/image v0.18.0/go.mod h1:4yyo5vMFQjVjUcVk4jEQcU9MGy/rulF5WvUILseCM2E=
|
||||
golang.org/x/image v0.22.0 h1:UtK5yLUzilVrkjMAZAZ34DXGpASN8i8pj8g+O+yd10g=
|
||||
golang.org/x/image v0.22.0/go.mod h1:9hPFhljd4zZ1GNSIZJ49sqbp45GKK9t6w+iXvGqZUz4=
|
@ -361,4 +361,13 @@ var ColorPalettes = []ColorMap{
|
||||
Color{Color: color.RGBA{0x2a, 0xa1, 0x98, 0xff}},
|
||||
Color{Color: color.RGBA{0x85, 0x99, 0x00, 0xff}},
|
||||
}},
|
||||
{"Pride", []Color{
|
||||
Color{Step: 0.0, Color: color.RGBA{0xff, 0x00, 0x00, 0xff}},
|
||||
Color{Step: 0.0, Color: color.RGBA{0xff, 0x7f, 0x00, 0xff}},
|
||||
Color{Step: 0.0, Color: color.RGBA{0xff, 0xff, 0x00, 0xff}},
|
||||
Color{Step: 0.0, Color: color.RGBA{0x00, 0xff, 0x00, 0xff}},
|
||||
Color{Step: 0.0, Color: color.RGBA{0x00, 0x00, 0xff, 0xff}},
|
||||
Color{Step: 0.0, Color: color.RGBA{0x2e, 0x2b, 0x5f, 0xff}},
|
||||
Color{Step: 0.0, Color: color.RGBA{0x8b, 0x00, 0xff, 0xff}},
|
||||
}},
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ import (
|
||||
const (
|
||||
Size = 128
|
||||
//Iterations = (1<<16 - 1) / 256
|
||||
Iterations = (1<<16 - 1) / 64
|
||||
Iterations = (1<<16 - 1) / 128
|
||||
)
|
||||
|
||||
var (
|
||||
@ -52,6 +52,7 @@ func main() {
|
||||
}
|
||||
|
||||
colorStep := float64(Iterations)
|
||||
|
||||
colors = interpolateColors("Hippi", colorStep)
|
||||
|
||||
log.Fatal(http.ListenAndServe(":6161", nil))
|
||||
@ -70,7 +71,7 @@ func computeThread() {
|
||||
}
|
||||
}
|
||||
|
||||
//interpolateColors accepts a color palette and number of desired colors and builds a slice of colors by interpolating the gaps
|
||||
// interpolateColors accepts a color palette and number of desired colors and builds a slice of colors by interpolating the gaps
|
||||
func interpolateColors(paletteCode string, numberOfColors float64) []color.RGBA {
|
||||
var factor float64
|
||||
steps := []float64{}
|
||||
|
2
web.go
2
web.go
@ -27,7 +27,7 @@ func init() {
|
||||
<meta property="og:image" content="https://deadbeef.codes/img/mandelbrot.png" />
|
||||
<meta property="og:site_name" content="deadbeef.codes">
|
||||
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCopjjJpOzgR_FUBKMJAcWQ9xMTFI-D4KA"></script>
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDJJV_-Q2wIBlzYVzfIbZTapl-8tMoYxw8"></script>
|
||||
<script>
|
||||
var mandelbrotTypeOptions = {
|
||||
getTileUrl: function(coord, zoom) {
|
||||
|
Reference in New Issue
Block a user