It is currently Tue Jul 23, 2019 12:46 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 35 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Spider Web Drawing
PostPosted: Fri Apr 29, 2016 2:35 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
-----------------------------------------------------------------------------------

Download Spider Web Drawing from My PureBasic Stuff

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

Tricks 'n' Tips
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 File Embedding
Spider Web Drawing
Deform Image: MLS
Video Snipping Tool
Image Waves: LUT
HTML5 YouTube Player
HTML5 MP4 Player
Barcode Generator
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

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Thu Jun 06, 2019 7:03 am, edited 64 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Spider Web Drawing
PostPosted: Fri Apr 29, 2016 10:16 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Oct 31, 2004 10:54 am
Posts: 754
Location: France
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 )

_________________
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/


Last edited by dobro on Fri Apr 29, 2016 5:40 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Spider Web Drawing
PostPosted: Fri Apr 29, 2016 10:55 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
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.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Sat Apr 30, 2016 10:00 am, edited 6 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Spider Web Drawing
PostPosted: Fri Apr 29, 2016 10:57 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 04, 2015 7:10 am
Posts: 1673
WOWSERS!!! :)

_________________
Thankyou to all the coders who generously helped & encouraged me in the nearly 2yrs when i was welcome here,
it was a tremendous privilege. I learned a lot. I wish you and your families all the best and success for the future.


Top
 Profile  
Reply with quote  
 Post subject: Re: Spider Web Drawing
PostPosted: Fri Apr 29, 2016 11:08 am 
Offline
Enthusiast
Enthusiast

Joined: Fri Oct 16, 2009 10:12 am
Posts: 570
Location: BE
Nice... horror show.
:wink:

_________________
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.


Top
 Profile  
Reply with quote  
 Post subject: Re: Spider Web Drawing
PostPosted: Fri Apr 29, 2016 11:15 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi Keya, Joris,

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

Cheers!

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Spider Web Drawing
PostPosted: Fri Apr 29, 2016 3:56 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Nov 05, 2006 11:42 pm
Posts: 4471
Location: Lyon - France
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Spider Web Drawing
PostPosted: Fri Apr 29, 2016 4:05 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 04, 2015 7:10 am
Posts: 1673
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

_________________
Thankyou to all the coders who generously helped & encouraged me in the nearly 2yrs when i was welcome here,
it was a tremendous privilege. I learned a lot. I wish you and your families all the best and success for the future.


Top
 Profile  
Reply with quote  
 Post subject: Re: Spider Web Drawing
PostPosted: Fri Apr 29, 2016 5:12 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3351
Location: Netherlands
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.14 Mojave, PB 5.62 x64


Top
 Profile  
Reply with quote  
 Post subject: Re: Spider Web Drawing
PostPosted: Fri Apr 29, 2016 6:48 pm 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1661
Location: Uttoxeter, UK
@JHPJHP,
Very nice, thank you for sharing.

_________________
DE AA EB


Top
 Profile  
Reply with quote  
 Post subject: Re: Spider Web Drawing
PostPosted: Fri Apr 29, 2016 9:35 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Oct 31, 2004 10:54 am
Posts: 754
Location: France
I wanted to say ,
the method you use ,
Using a geometric shape to draw a picture
I had already made here: (2013 ;) )

viewtopic.php?f=12&t=53477&p=404588&sid=73499416090311f0555f72ea184b7063#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/

_________________
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/


Last edited by dobro on Sat Apr 30, 2016 1:33 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Spider Web Drawing
PostPosted: Fri Apr 29, 2016 10:48 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
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:

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Fri Apr 29, 2016 10:54 pm, edited 3 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Spider Web Drawing
PostPosted: Fri Apr 29, 2016 10:51 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 04, 2015 7:10 am
Posts: 1673
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!

_________________
Thankyou to all the coders who generously helped & encouraged me in the nearly 2yrs when i was welcome here,
it was a tremendous privilege. I learned a lot. I wish you and your families all the best and success for the future.


Last edited by Keya on Fri Apr 29, 2016 11:06 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Spider Web Drawing
PostPosted: Fri Apr 29, 2016 10:53 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 6:14 pm
Posts: 1695
Location: Germany (Saxony, Deutscheinsiedel)
Very cool effect! :mrgreen:

_________________
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)


Top
 Profile  
Reply with quote  
 Post subject: Re: Spider Web Drawing
PostPosted: Fri Apr 29, 2016 11:20 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Oct 31, 2004 10:54 am
Posts: 754
Location: France
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/


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 35 posts ]  Go to page 1, 2, 3  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye