forked from kscience/visionforge
22 lines
617 B
Kotlin
22 lines
617 B
Kotlin
|
package hep.dataforge.vision.examples
|
||
|
|
||
|
import hep.dataforge.meta.DFExperimental
|
||
|
import hep.dataforge.vision.VisionForge
|
||
|
import hep.dataforge.vision.VisionManager
|
||
|
import hep.dataforge.vision.html.ResourceLocation
|
||
|
import hep.dataforge.vision.html.fragment
|
||
|
import hep.dataforge.vision.solid.box
|
||
|
import hep.dataforge.vision.solid.solid
|
||
|
|
||
|
@OptIn(DFExperimental::class)
|
||
|
fun main() {
|
||
|
val content = VisionManager.fragment {
|
||
|
vision("canvas") {
|
||
|
solid {
|
||
|
box(100, 100, 100)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
VisionForge.makeVisionFile(content, resourceLocation = ResourceLocation.SYSTEM)
|
||
|
}
|