Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intersection and trace false #2046

Open
benoitwimart opened this issue Sep 6, 2023 · 0 comments
Open

intersection and trace false #2046

benoitwimart opened this issue Sep 6, 2023 · 0 comments

Comments

@benoitwimart
Copy link

Hi,

I think this is not good or I don't understand the trace option?

var inter;

var cercle1 = new paper.Path.Circle(new paper.Point(120, 120), 100);
cercle1.strokeColor = 'red';

function suivreSouris(event) {
    if(inter!==undefined){
        inter.remove();
    }
    var cercle2 = new paper.Path.Circle(new paper.Point(150, 100), 60);
    cercle2.position = event.point;
    cercle2.strokeColor = 'blue';
    inter = cercle2.intersect(cercle1,{trace:false});
    inter.strokeColor = 'green';
    cercle2.remove();
}

paper.view.onMouseMove = suivreSouris;

here a demo :
http://sketch.paperjs.org/#V/0.12.17/S/jVLBboMwDP2VjAsgIUQrbQcmTj1XqtTj2CENZo2gDnICPSD+fSZQDXFaDonsZz+/Z2UMUD4gyINrA07dgyRQpprjEgdJQqMD+ixxiRSQauEgCoHwFJ3sgNKLdPf0pGcg2mQNd0aHY5YIvmK+syxmnpUhtY5MAyfTGmK2kKAK/ZS6R+W0QWF7PRBcTU/aRjAAuliMJQo+uo68rLei6LGCWiNU8Yp5fAZTgocZIJqHzslpef5cHP/v4j1b9CfiI3vxrSRpZ6z2ggvhVXKCe3ZFO7e3todwLfFiOfkq9bEF5aJ1VcnoSCrIa9lamOJt2573hwAw3M3e7GGaN7w4GzQ8U4Nn01s4M87t241zMf+EG4FsvB8b5F/f0y8=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant