Usable, not everything is parameterisable yet, but it can do some pretty

things.
This commit is contained in:
joachim 2018-10-09 14:51:29 +02:00
parent beaf7ceb46
commit ef9d609d46

View File

@ -29,7 +29,7 @@ class SvgCreator(val apparentMagnitudeCutOff: Double = 7.0,
val outputFile: File = File("output/stars.svg"), val outputFile: File = File("output/stars.svg"),
val overwriteOutputFile: Boolean = true, val overwriteOutputFile: Boolean = true,
val nameOffset: Double = 0.5, val nameOffset: Double = 0.5,
val properNameSize: String = "1.2px", val properNameSize: String = "2px",
val properNameFont: String = "Trajan Pro", val properNameFont: String = "Trajan Pro",
val properNameItalic: Boolean = false val properNameItalic: Boolean = false
) { ) {
@ -85,7 +85,7 @@ class SvgCreator(val apparentMagnitudeCutOff: Double = 7.0,
.colorClassM5 { fill: #ffcc6f } .colorClassM5 { fill: #ffcc6f }
.colorClassDefault { fill: white } .colorClassDefault { fill: white }
</style> </style>
<circle cx="90" cy="90" r="90" stroke="white" stroke-width="1" fill="black" />""".trimIndent()) <circle cx="90" cy="90" r="90" stroke="black" stroke-width="1" fill="black" />""".trimIndent())
// loop over stars // loop over stars
HygParser().parse() HygParser().parse()