Anthony Starks

Results 71 comments of Anthony Starks

Note that I recently added polylines to deck and decksh, so rendering geo data works. For example, to make this: ![image](https://user-images.githubusercontent.com/169692/180606576-90a662f3-aa53-408c-8eb0-167be0a2e2d4.png) I converted geo data to polylines. (previously the code...

see: https://github.com/ajstarks/kml for a program to convert KML files to deck markup: ![image](https://user-images.githubusercontent.com/169692/180923213-1a84df23-1041-4f3c-8db4-94c887bfe89f.png)

Note that KML is a standard: https://www.ogc.org/standards/kml/. My program may evolve as there are more extensive packages like: * https://pkg.go.dev/github.com/twpayne/go-geom/encoding/kml * https://pkg.go.dev/github.com/twpayne/go-geom Also note the source of the data in...

KML is now a package: https://github.com/ajstarks/kml

What is the use-case for multiple font locations? Re: using go-findfont, people can easily point DECKFONT to a system location, and I'd rather not introduce a dependency for this function....

I'm ok with the idea of a utility that helps set DECKFONTS: $ setdeckfont # use the default for the host OS DECKFONTS=/Library/Fonts/ $ setdeckfont -os unix DECKFONTS=~/.local/share/fonts/

see: https://github.com/ajstarks/utils/blob/master/cmd/setdeckfont/setdeckfont.go ``` package main import ( "fmt" "os" "path/filepath" "github.com/flopp/go-findfont" ) func main() { sample := "" if len(os.Args) > 1 { sample = os.Args[1] } fontPath, err :=...

I have some ideas on a more advance GUI. Stay tuned. Here is a mockup of the UI: 1) blank canvas, 2) click on the canvas and see its property...

the best referece to the DSL is: https://github.com/ajstarks/decksh/blob/master/doc/objref.pdf

yes, there is support for micro, vim, VSCode, and Sublime Text. The dsh.yaml is the config for the micro editor (https://micro-editor.github.io/). To understand the parsing see: https://github.com/ajstarks/decksh/blob/master/parse.go