creativescala / doodle

Compositional vector graphics in Scala / Scala.JS
https://creativescala.org/doodle/
Apache License 2.0
327 stars 75 forks source link

Added originAt support to Image #128

Closed danielost closed 1 year ago

danielost commented 1 year ago

Added originAt support to Image (Issue #122)

Method works correctly and can take Vec, Point, x and y coordinates and polar coordinates just like the originAt in Picture.

Example with x, y coordinates:

val atAndOriginAt =
      Image
        .circle(100)
        .at(25, 25)
        .debug
        .beside(Image.circle(100).originAt(25, 25).debug)

Output: image

I've also updated the docs.

noelwelsh commented 1 year ago

👍