Compare commits

...

18 Commits

Author SHA1 Message Date
c9c29f980d change iterations from /64 to /128
All checks were successful
continuous-integration/drone/push Build is passing
2024-12-01 14:56:37 -07:00
4b811dc8d7 upgrade golang.orx/x/image from 0.18.0 to 0.22.0 2024-12-01 14:56:26 -07:00
62eed5a9ee remove ca-certificates 2024-12-01 14:56:01 -07:00
1dd6fa470e move from deadbeef.codes to code.stevenpolley.net
All checks were successful
continuous-integration/drone/push Build is passing
2024-06-28 11:57:09 -06:00
c1b138aad1 update dependencies
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is failing
2024-01-06 23:45:43 -07:00
073f79aa79 update go mod
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-10 12:26:22 -06:00
b2515749ae high res is cool and all, it's really killing perf
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-22 13:10:59 -07:00
60050187f8 revert back to interpolated color palette and reduce iterations
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2021-07-30 17:35:59 -06:00
20dc1fcbd9 increase size to 512 (experimenting)
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-11 23:33:57 -06:00
67a301284e pride
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-11 17:35:29 -06:00
884f2f0f80 update web API key
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-11 16:40:32 -06:00
7f3ce1a8e1 go mod init
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-23 19:13:34 -06:00
f344c9ca06 add maintainer to Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-04 21:09:02 +00:00
b6bd4382c1 remove production pipeline step
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-15 05:15:00 +00:00
07cfe80c08 Trigger CICD build - test
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-02 11:55:20 -06:00
0014ae7eee fix production push
All checks were successful
continuous-integration/drone/push Build is passing
2019-08-31 15:17:45 -06:00
48ac50f64c Merge branch 'master' of https://deadbeef.codes/steven/mandelmapper
All checks were successful
continuous-integration/drone/push Build is passing
2019-08-31 09:44:34 -06:00
d5f9fb4b86 fix prod not getting updated on push 2019-08-31 09:44:33 -06:00
9 changed files with 28 additions and 3433 deletions

View File

@ -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

View File

@ -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"]

View File

@ -1,4 +1,6 @@
[![Build Status](https://drone.deadbeef.codes/api/badges/steven/mandelmapper/status.svg)](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

File diff suppressed because it is too large Load Diff

5
go.mod Normal file
View 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
View 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=

View File

@ -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}},
}},
}

View File

@ -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
View File

@ -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) {