Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8973933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:33:43+00:00 2026-06-15T18:33:43+00:00

I want to show only intersection of two shape by using KineticJS . How

  • 0

I want to show only intersection of two shape by using KineticJS.
How can I do this?
I tried to do it like following link.
HTML5 Canvas Clipping Region. Is have any other way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:33:44+00:00Added an answer on June 15, 2026 at 6:33 pm

    I have created the solution based on Shmi.

       function makeShapeComposite(shape, operation) {
            shape.attrs._drawFunc = shape.attrs.drawFunc;
            shape.attrs.drawFunc = function (context) {
                context.save();
                context.globalCompositeOperation = operation;
                this.attrs._drawFunc.call(this, context);
                context.restore();
            };
            return shape;
        };   
    
       var pol=  makeShapeComposite(new Kinetic.RegularPolygon({
               x: 250,
                y: 100,
                sides: 4,
                radius: 70,
                fill: '#00D2FF',
                stroke: 'black',
                strokeWidth: 2
            }), "destination-in");
    

    Fiddle:http://jsfiddle.net/sara9/2v7W2/5/

    Refer this tutorial.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to show only those contacts having address field.i am using this code..
I want to show up only words with minimum 4 Characters, actually I can
I want to show only the top 5 comments for a specific post (Like
i am using following code to create and show only current year calender ...
I want to show only some part of image in imageview. See following image
i want to show only two decimal places in my edit text, ofc i
I want to know how can I show only configured products on listing page?
I am using a FileUpload in my asp.net application. I want to show only
I want to show only desired number of elements in list when I click
I have a bunch or markers, and I want to show only the area

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.