Demos: ensure all use fun main() = application {
- Adjust some demo window sizes. - Replace Random.double by Double.uniform - Tweak some demos so screenshots look more interesting
This commit is contained in:
@@ -3,23 +3,21 @@ import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.extra.color.spaces.toOKLABa
|
||||
import org.openrndr.extra.shadestyles.linearGradient
|
||||
|
||||
fun main() {
|
||||
application {
|
||||
program {
|
||||
extend {
|
||||
drawer.shadeStyle = linearGradient(
|
||||
ColorRGBa.RED.toOKLABa(),
|
||||
ColorRGBa.BLUE.toOKLABa(),
|
||||
)
|
||||
drawer.rectangle(120.0, 40.0, 200.0, 400.0)
|
||||
fun main() = application {
|
||||
program {
|
||||
extend {
|
||||
drawer.shadeStyle = linearGradient(
|
||||
ColorRGBa.RED.toOKLABa(),
|
||||
ColorRGBa.BLUE.toOKLABa(),
|
||||
)
|
||||
drawer.rectangle(120.0, 40.0, 200.0, 400.0)
|
||||
|
||||
drawer.shadeStyle = linearGradient(
|
||||
ColorRGBa.RED,
|
||||
ColorRGBa.BLUE
|
||||
)
|
||||
drawer.shadeStyle = linearGradient(
|
||||
ColorRGBa.RED,
|
||||
ColorRGBa.BLUE
|
||||
)
|
||||
|
||||
drawer.rectangle(120.0+200.0, 40.0, 200.0, 400.0)
|
||||
}
|
||||
drawer.rectangle(120.0 + 200.0, 40.0, 200.0, 400.0)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user