Skip to content

How to apply a clipping artefact to a specific image artefact only? (Question) #24

Answered by KaliedaRik
Sjoerd82 asked this question in Q&A
Discussion options

You must be logged in to vote

There's a few of ways you can do this. The simplest is probably to use the globalCompositeOperation attribute.

(Note that you don't need to include default values when defining the entitys)

scrawl.makeWheel({
    name: 'wheel-clip',
    radius: 270,
    startX: 279,
    startY: 279,
    handle: ['center', 'center'],
    order: 0,
})

let tokenSubject = scrawl.makePicture({
    name: 'token-subject',
    imageSource: `/../img/background.png`,
    width: '100%',
    height: '100%',
    copyWidth: this.currentScale * this.frameDimension,
    copyHeight: this.currentScale * this.frameDimension,
    copyStartX: fromLeft,
    copyStartY: fromTop,
    filter: 'drop-shadow(2px 2px 2px #000000)',
…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by KaliedaRik
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #22 on May 14, 2022 09:23.