[orx-shadestyles] Improve gradient and imageFill shadestyles

This commit is contained in:
Edwin Jakobs
2025-02-25 12:16:57 +01:00
parent 21a3d7f483
commit 9a93d95318
30 changed files with 1296 additions and 386 deletions

View File

@@ -0,0 +1,25 @@
package image
import org.openrndr.application
import org.openrndr.draw.loadImage
import org.openrndr.extra.shadestyles.fills.FillUnits
import org.openrndr.extra.shadestyles.fills.SpreadMethod
import org.openrndr.extra.shadestyles.fills.image.imageFill
import org.openrndr.math.transforms.transform
fun main() = application {
configure {
width = 720
height = 720
}
program {
var img = loadImage("demo-data/images/image-001.png")
extend {
drawer.shadeStyle = imageFill {
image = img
}
drawer.circle(drawer.bounds.center, 200.0)
}
}
}