Jump to content

PHP/JavaScript Autp Jigsaw Puzzle


twilitegxa

Recommended Posts

I can think of a way but its a bit complicated. You would need to make overlapping grids. I would start with a piece of graph paper and a standardized image size.

 

Start with the edges. You need a circle coords halfed. The half-circle is your out-crop/notch. Use overlap half of your circle. Use  the coords to overlay color from the L and R side of circle to the edge on a line across the bottom. if you do this on two sides and make the color transparent you now have a piece with two notches sticking out. You have to loop through each time opening the image again because you need overlapping slices.

 

It is involved and as I said mapping it out on graph paper you could map out the coords a bit easier than winging it with code at first.

 

You might consider using a perfect oval of two of different sizes. But mapping it out and using the graph grids as 10px you could easily map out a 300x300 image.

 

So you basically grid it out and center the circle/oval at a center point on the sides of the grid and map your overlays and overlapping grid sizes. Then crop the grid out and overlay then make the overlay color transparent. The notched pieces are fairly easy compared to the out-crop pieces.

 

 

HTH

Teamatomic

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.