Spider Web Drawing

Share your advanced PureBasic knowledge/code with the community.
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
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/
JHPJHP
Addict
Addict
Posts: 2129
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.
User avatar
Keya
Addict
Addict
Posts: 1891
Joined: Thu Jun 04, 2015 7:10 am

Re: Spider Web Drawing

Post by Keya »

WOWSERS!!! :)
Joris
Addict
Addict
Posts: 885
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.
JHPJHP
Addict
Addict
Posts: 2129
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!
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5342
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: 1891
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: 3870
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.
Windows (x64)
Raspberry Pi OS (Arm64)
davido
Addict
Addict
Posts: 1890
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: 766
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/
JHPJHP
Addict
Addict
Posts: 2129
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.
User avatar
Keya
Addict
Addict
Posts: 1891
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: 2050
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: 766
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/
Locked