Skip to content

Commit

Permalink
画像小さかったので拡大倍率を変更可能にした
Browse files Browse the repository at this point in the history
  • Loading branch information
otiai10 committed Apr 13, 2020
1 parent d76ce54 commit 5143958
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
var (
geo, mask bool
usepix bool
scale float64

// 以下、タイムラプスでのみ有効
lapse bool
Expand All @@ -31,6 +32,7 @@ func init() {
flag.BoolVar(&geo, "g", true, "地形を描画")
flag.BoolVar(&mask, "b", true, "県境を描画")
flag.BoolVar(&usepix, "p", false, "iTermであってもピクセル画で表示")
flag.Float64Var(&scale, "s", 0.8, "表示拡大倍率")
flag.Usage = func() {
fmt.Fprintf(os.Stderr, "東京アメッシュをCLIに表示するコマンドです。\n利用可能なオプション:\n")
flag.PrintDefaults()
Expand All @@ -40,7 +42,7 @@ func init() {

func main() {
renderer := render.GetDefaultRenderer()
renderer.SetScale(0.5)
renderer.SetScale(scale)
subcommand := flag.Arg(0)
switch {
case subcommand == "typhoon":
Expand Down

0 comments on commit 5143958

Please sign in to comment.