visionforge/demo/playground/src/jvmMain/kotlin/gdmlIaxo.kt

21 lines
605 B
Kotlin
Raw Normal View History

2021-03-07 16:19:43 +03:00
package space.kscience.visionforge.examples
2021-03-04 09:47:41 +03:00
import space.kscience.gdml.GdmlShowCase
import space.kscience.visionforge.Colors
import space.kscience.visionforge.gdml.gdml
2021-03-07 16:19:43 +03:00
import space.kscience.visionforge.solid.Solids
import space.kscience.visionforge.solid.ambientLight
import space.kscience.visionforge.solid.invoke
import space.kscience.visionforge.solid.solid
2021-03-04 09:47:41 +03:00
fun main() = makeVisionFile {
vision("canvas") {
requirePlugin(Solids)
solid {
ambientLight {
color(Colors.white)
}
gdml(GdmlShowCase.babyIaxo(), "D0")
}
2021-03-04 09:47:41 +03:00
}
}