chess board in a circle

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
manit
Posts: 123
Joined: 2009-01-30T22:31:26-07:00

chess board in a circle

Post by manit »

Do not resurrect old topics for a new problem, post split to new topic -- Ant


I drew a chessboard using

convert -size 8x8 pattern:gray50 -scale 10100% chessboard.png
Then I drew a circle over it
convert.exe chessboard.jpg -fill none -stroke red -draw "circle 353,253 504,201" my-icon.jpg
Now I want that circle to appear as 3d .
it is something about alpha channel inside area covered by circle . Still , I am not able to find a way ?

Please help.
Thank You.
Last edited by manit on 2013-04-19T19:45:00-07:00, edited 1 time in total.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: chess board in a circle

Post by anthony »

How do you want to make the 'circle' appear 3-D.

Shading?
Surface distortion?

Have a look at IM Examples, Image Maps.
http://www.imagemagick.org/Usage/mapping/#spherical
This uses DIY created 'mapped' distortions to generate a sphere-like image mapping. But also does spherical shading.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
manit
Posts: 123
Joined: 2009-01-30T22:31:26-07:00

Re: chess board in a circle

Post by manit »

taking cue from
'Draw Dim Box' in http://www.imagemagick.org/Usage/annotating/
I just replaced -fill none with -fill '#0008' which makes my circle more noticeable on chess board .
I tried
convert.exe my-icon.jpg ( +clone -blur 0x20 -shade 110x21.7 -contrast-stretch 0% +sigmoidal-contrast 6x50% -fill grey50 -colorize 10% ) -composite sphere_overlay.jpg

on my windows 7 OS but it acted on whole image instead of just that circle which I want to highlight
Post Reply