Bump to OPENRNDR 0.3.45-rc.6

This commit is contained in:
Edwin Jakobs
2020-12-25 09:13:50 +01:00
parent 0b2d8991db
commit d39e1d0783
8 changed files with 175 additions and 2 deletions

View File

@@ -0,0 +1,45 @@
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.draw.isolated
import org.openrndr.shape.Circle
import org.openrndr.shape.Rectangle
fun main() {
application {
configure {
width = 720
height = 720
}
program {
val cs = Rectangle(0.0, 0.0, 200.0, 200.0).contour
val cc = Circle(100.0, 0.0, 100.0).contour
extend {
drawer.fill = ColorRGBa.GRAY
drawer.stroke = ColorRGBa.PINK
drawer.isolated {
drawer.contour(cs)
drawer.translate(300.0, 0.0)
// this should create a contour similar to the input contour
drawer.contour(cs.sampleEquidistant(4))
drawer.contour(cs.sampleEquidistant(3))
}
drawer.isolated {
drawer.translate(.0, 400.0)
drawer.contour(cc)
drawer.translate(300.0, 0.0)
drawer.contour(cc)
// this should draw a hexagon
drawer.contour(cc.sampleEquidistant(6))
// this should draw a triangle
drawer.contour(cc.sampleEquidistant(3))
}
}
}
}
}