Spider Web Drawing

Share your advanced PureBasic knowledge/code with the community.
User avatar
JHPJHP
Addict
Addict
Posts: 1851
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Spider Web Drawing

Post by JHPJHP »

-----------------------------------------------------------------------------------

Download Spider Web Drawing from My PureBasic Stuff

-----------------------------------------------------------------------------------

Announcements
PureBasic Interface to OpenCV
PureBasic Interface to WinDivert
PureBasic Interface to WinRAR
PureBasic Interface to 7-Zip
PureBasic Interface to ImDisk
Windows Services & Other Stuff
Invading Space Aliens
Death Star vs Asteroids
GIF Toolkit
LSB Image Steganography
Spider Web Drawing
Deform Image: MLS
Video Snipping Tool
Chromium Edge WebGadget
IAccessible Interface
Stitch Images: SIFT
OldSkool Fire Effect
Image Waves: LUT
YouTube Player & Downloader
MP4 Player & Downloader
Large Image Viewer
Barcode Generator
Google Translate Service
Embed JS into PureBasic
Geolocation: Google Maps
Book & Viewer & Magnify
Video for Windows: VfW
Alternate Console
Network Share Management

-----------------------------------------------------------------------------------

Based on work I started in PureBasic Interface to OpenCV.

[ Allow the drawing to execute until you notice the process slowing. The slower the process the more detailed the results. ]

Spider Web Drawing:
- Press the Spacebar to pause or continue drawing
- Drag & Drop image uploading
- Double-click the display area to open the original image
- Press the 'Alt+G' key to convert to Grayscale
- Press the 'Alt+S' key to convert to Sepia
- Right-mouse-click the display area to open a context menu
-- Pause / Continue Drawing :: Return Main Image
-- Open New Image
-- Save Visible Image
-- Open Original Image
-- Open Control Panel
-- Convert to Grayscale
-- Convert to Sepia
-- Set Color Space
--- YUV / YCrCb
--- YIQ
--- XYZ
--- Hunter LAB
--- CIE-LAB
--- CIE-LUV
--- HSV / HSB
--- HLS / HSL
-- Close Spider Web Drawing
Last edited by JHPJHP on Sat Oct 16, 2021 8:55 pm, edited 80 times in total.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
dobro
Enthusiast
Enthusiast
Posts: 767
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Re: Spider Web Drawing

Post by dobro »

very cool :)

and ... just for the Fun : :) (Wait 10-20 secondes )

http://michel.dobro.free.fr/Purebasic/TestSpider.swf


(this effect is made with Pure Anaglyphe )
Last edited by dobro on Fri Apr 29, 2016 5:40 pm, edited 1 time in total.
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
JHPJHP
Addict
Addict
Posts: 1851
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Spider Web Drawing

Post by JHPJHP »

Hi dobro,

Thank you for commenting. This was one of my favorite effects from PureBasic Interface to OpenCV.

I also like the link you posted, it really brings the image to life.

-----------------------------------

Updated:
- added 2 effects
-- convert to grayscale
-- convert to sepia

Convert to Grayscale: Executed from the context menu or by pressing 'G'.
Convert to Sepia: Executed from the context menu or by pressing 'S'.
- press the Spacebar to return to the main image
- press the Spacebar a second time to continue drawing

NB*: Save the image at anytime: WYSIWYG.
Last edited by JHPJHP on Sat Apr 30, 2016 10:00 am, edited 6 times in total.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
Keya
Addict
Addict
Posts: 1865
Joined: Thu Jun 04, 2015 7:10 am

Re: Spider Web Drawing

Post by Keya »

WOWSERS!!! :)
Joris
Enthusiast
Enthusiast
Posts: 742
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: Spider Web Drawing

Post by Joris »

Nice... horror show.
:wink:
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
User avatar
JHPJHP
Addict
Addict
Posts: 1851
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Spider Web Drawing

Post by JHPJHP »

Hi Keya, Joris,

Thank you both, your reactions / comments are what I was hoping for.

Cheers!

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
Kwai chang caine
Addict
Addict
Posts: 4968
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Spider Web Drawing

Post by Kwai chang caine »

Incredible !!!! :shock:

In some seconde, impossible to not recognize the face of whoopi goldberg !!!! :mrgreen:
Image

No, without joke :wink: , this effect is really splendid, congratulation you are a magician 8)
ImageThe happiness is a road...
Not a destination
User avatar
Keya
Addict
Addict
Posts: 1865
Joined: Thu Jun 04, 2015 7:10 am

Re: Spider Web Drawing

Post by Keya »

FRIENDS, YOU HAVE TO TRY THIS ONE!!! The static screenshot in the first post doesn't do it justice -- it's animated and the animation itself is quite remarkable!! but what else is remarkable is how very little code there is!!! and even when you do look over the code you can't help but wonder "huh? where's the code that's doing all this magic!?!?" lol
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3746
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Spider Web Drawing

Post by wilbert »

Nice effect :)
JHPJHP wrote:Should be cross-platform
It's not working on OSX without making changes.
The constants #White, #MB_ICONEXCLAMATION, #MB_ICONWARNING and #MB_ICONERROR are not defined on OSX.
The .ico images for the popup menu aren't loaded correctly.
macOS 10.15 Catalina, Windows 10
davido
Addict
Addict
Posts: 1853
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Spider Web Drawing

Post by davido »

@JHPJHP,
Very nice, thank you for sharing.
DE AA EB
User avatar
dobro
Enthusiast
Enthusiast
Posts: 767
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Re: Spider Web Drawing

Post by dobro »

I wanted to say ,
the method you use ,
Using a geometric shape to draw a picture
I had already made here: (2013 ;) )

http://forums.purebasic.com/english/vie ... 63#p404588

my program "Pure_autopaint", using different ways to paint a picture.
mode "Flocon" makes, may nearly the same result as your code :)

ImageImage

hum ! plagiarism? <-- (joking :lol:) several people may have the same ideas

ps : since I made a sequel to "Auto_paint"
I called "Barbouille" (Smear)..( the sources are not available)
with Barbouille, it's full of drawing mode
ability to draw with the mouse
post treatment etc ..

download here : Barbouille ...
http://michel.dobro.free.fr/STLINE/down ... arbouille/
Last edited by dobro on Sat Apr 30, 2016 1:33 am, edited 1 time in total.
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
JHPJHP
Addict
Addict
Posts: 1851
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Spider Web Drawing

Post by JHPJHP »

Hi Kwai chang caine,

Thank you, I'm glad you liked it. I also find it 'magical' how the faces become recognizable after a time.

--------------------------------------------------

Hi Keya,

I agree, the algorithm for creating the effect is brilliant, wish I could take credit for it...

~ developed by Christopher Webb

--------------------------------------------------

Hi Wilbert,

Thanks for the comment and information, I should have it fixed shortly.

--------------------------------------------------

Hi davido,

Thank you, it is always nice to receive your support.

--------------------------------------------------

Hi dobro,

Your application looks great, and you're right the results look very similar... hmmm ! but the code I used was written in 2010/11 by Christopher Webb :lol:
Last edited by JHPJHP on Fri Apr 29, 2016 10:54 pm, edited 3 times in total.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
Keya
Addict
Addict
Posts: 1865
Joined: Thu Jun 04, 2015 7:10 am

Re: Spider Web Drawing

Post by Keya »

lol, of course his surname is Webb. just had a look at the algorithm on his page you linked, i love it when there's hardly any code but it produces such a great effect!

dobro i just saw yours too, really awesome impressionist painting-like effect!
Last edited by Keya on Fri Apr 29, 2016 11:06 pm, edited 1 time in total.
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 1877
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: Spider Web Drawing

Post by Andre »

Very cool effect! :mrgreen:
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
User avatar
dobro
Enthusiast
Enthusiast
Posts: 767
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Re: Spider Web Drawing

Post by dobro »

JHPJHP wrote: Your application looks great, and you're right the results look very similar... hmmm ! but the code I used was written in 2010/11 by Christopher Webb :lol:

arf !! as I said, several people may have the same ideas .. :)

Personally, the idea came to me, watching a prog (Dynamic Auto Painter )
paint a picture of conversion: see here:

https://www.youtube.com/watch?v=oZOuWw71ZZ4

I do not know Christopher Webb ,it's interesting, thank you for the link :)

@Keya Thanks :)
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
Post Reply