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 6348485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:25:43+00:00 2026-05-24T21:25:43+00:00

Okay, my issue is better explained visually: I need to make those 5 images

  • 0

Okay, my issue is better explained visually:

enter image description here

I need to make those 5 images easily replaceable without the client having to manually cut angles out of images, etc. So I’m picturing it this way:

I created PNG masks for the blue bar and blue space above them. But the images still overlap at the bottom because they are all square (see last image for an example). Is there any way, using an image map (or even javascript) to cut/mask pieces out of a square image on page load?

enter image description here

Thanks,

Chris

  • 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-05-24T21:25:43+00:00Added an answer on May 24, 2026 at 9:25 pm

    I think your best option would be to use canvas unless I’m forgetting something with css3

    <canvas id="image1" width="___" height="____">
    </canvas>
    
    var people = [___];
    var canvas = document.getElementById("image1");
    var context = canvas.getContext("2d");
    context.drawImage(people[0], x, y, width, height);
    context.beginPath();
    context.moveTo(x, y);
    context.lineTo(x1, y1);
    context.lineTo(x2, y1);
    context.arcTo(x, y);
    context.clip();
    context.closePath();
    

    I may have messed up but I’m going for something like this

               (x, y)\__
              /         \__
             /             \__
    (x2, y1)(_________________\(x1, y1)
    

    Which is my best way of drawing the leftmost pizza slice with ascii

    Doing this will require multiple canvas elements. where each one represents one slice. The reason is because clipping will erase everything but what’s in the path.

    Resources:

    • MDN:clipping
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, so here's the issue. I have two apps that need to package up
Okay please help, I've been frustrated with this issue. I need to either set
Okay I got some good advice for Mobile Detection but still having an issue
Okay so I'm having an issue with a current assignment (trust me this is
Okay, here is my issue: My app has a display of categories in the
Okay people, I'm sure someone has had this issue and can help me out.
Okay, of course it is possible, that's no issue. In my code I have
Okay, so this probably sounds terribly nefarious, but I need such capabilities for my
Okay, I think I might be over-complicating this issue but I truly am stuck.
Okay, before you spam me with StringFormat.Alignment = StringAlignment.Center ... hear my whole issue:

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.