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

  • Home
  • SEARCH
  • 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 9249669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:15:20+00:00 2026-06-18T10:15:20+00:00

I know you can draw a wedge using a Kinetic.Wedge: var compassArc = new

  • 0

I know you can draw a wedge using a Kinetic.Wedge:

  var compassArc = new Kinetic.Wedge({
    x: stage.getWidth() / 2,
    y: stage.getHeight() / 2,
    radius: 70,
    angleDeg: 60,
    fill: 'red',
    stroke: 'black',
    strokeWidth: 4,
    rotationDeg: -90
  });

This draws a “pizza slice” with a black outline around the whole thing. I just want the “crust” of the pizza, with no straight lines coming back to the center of the circle. How can I do this?

Setting the fill to null removes the red but leaves the outline.

  • 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-18T10:15:21+00:00Added an answer on June 18, 2026 at 10:15 am

    How about creating a custom shape fot this using arc?

    http://www.html5canvastutorials.com/tutorials/html5-canvas-arcs/

    Please keep in mind that not to close path and not to fill strokes. if so, you will get what you want. It is a KineticJS object, so that you can drag around if you want.

    Here is the working example.

    http://jsfiddle.net/bighostkim/WzxxH/

    var arc = new Kinetic.Shape({
        drawFunc: function(canvas) {
            var context = canvas.getContext();
            var x = stage.getWidth() / 2;
            var y = stage.getHeight()/2;
            var radius = 70;
            var startAngle = 1 * Math.PI;
            var endAngle = 0 * Math.PI;
            var context = canvas.getContext('2d');
            context.beginPath();
            context.arc(x, y, radius, startAngle, endAngle, false);
            //context.closePath();
            canvas.stroke(this);
        },
        fill: '#00D2FF',
        stroke: 'black',
        strokeWidth: 4,
        draggable:true
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a query that I know can be done using a subselect, but
Does anyone know with what I can draw a unfilled square on a live
I'm working on a project where you can draw on the screen using touch.
I want to know can I draw this type of line (Shadowed line) for
As far as I know you can use Custom Draw in a list-view to
having a canvas element in my html page, i can draw graphs, using the
Is there a way i can draw the black background behind the image using
Anyone know how I can draw Polygons with GPolygon from Google Map without having
How can I draw such a graph using Swing? I have used a JFreeChart
I wonder if I can draw rectangle in XML. I know how to draw

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.