Bump to OPENRNDR 0.3.44-rc.11, add colorSequence
This commit is contained in:
@@ -38,7 +38,7 @@ fun main() {
|
||||
gradients.forEachIndexed { gradientId, gradient ->
|
||||
for (column in 0 until 10) {
|
||||
val color1 = ColorRGBa.PINK.toHSVa().shiftHue(column * 12.0)
|
||||
.scaleValue(0.5).toRGBa()
|
||||
.shade(0.5).toRGBa()
|
||||
|
||||
val w = width.toDouble() / 10.0
|
||||
val h = height.toDouble() / gradients.size
|
||||
|
||||
@@ -16,7 +16,7 @@ fun main() {
|
||||
extend {
|
||||
drawer.shadeStyle = radialGradient(
|
||||
ColorRGBa.PINK,
|
||||
ColorRGBa.PINK.toHSVa().shiftHue(180.0).scaleValue(0.5).toRGBa(),
|
||||
ColorRGBa.PINK.toHSVa().shiftHue(180.0).shade(0.5).toRGBa(),
|
||||
exponent = cos(seconds)*0.5+0.5
|
||||
)
|
||||
drawer.rectangle(120.0, 40.0, 400.0, 400.0)
|
||||
|
||||
Reference in New Issue
Block a user