RPGDXThe center of Indie-RPG gaming
Not logged in. [log in] [register]
 
 
Post new topic Reply to topic  
View previous topic - View next topic  
Author Message
DeveloperX
202192397


Joined: 04 May 2003
Posts: 1626
Location: Decatur, IL, USA

PostPosted: Wed Nov 03, 2004 10:07 am    Post subject: Mandrake: [quote]

I just noticed that your signature is a program that draws a view of the mandelbrot set! Albeit it is incomplete, you need to include the header file. :)

for anyone who was pondering what your sig was, I offer this:
Code:

~~~~~~~~~~}}}}}}}}}||||||||||||||||||||||{{{{{zxyzz{{{{{|||||}}}}}}}}}}}}}}}}}}
~~~~~~~~}}}}}}}|||||||||||||||||||||{{{{{{{{zzyyorwxwy{{{{{{|||||}}}}}}}}}}}}}}
~~~~~~}}}}}|||||||||||||||||||||{{{{{{{{{zzzzyxwvrdtwxyzz{{{{{{||||||}}}}}}}}}}
~~~~~}}}}||||||||||||||||||||{{{{{{{{{zzzyyyxvqO    elwyzzzzz{{{{||||||}}}}}}}}
~~~~}}}|||||||||||||||||||{{{{{{{{zzyxxxxxxwvuq      tvwxyyyyyyz{{|||||||}}}}}}
~~~}}||||||||||||||||||{{{{{zzzzzyyxwehBBrn              rutjtVtyz{||||||||}}}}
~~}||||||||||||||||{{zzzzzzzzzzyyyxwuto                    4  Vxyzz{{||||||||}}
~~||||||||||{{{{zzyutxyyyyxxxxxxxwuq                          Fvvxz{{|||||||||}
~}|||{{{{{{{{zzzzyxwsnlqtrXibtvvutg                             uxz{{{||||||||}
~|{{{{{{{{zzzzzzxxxutod        jqn                              Yyz{{{{||||||||
~{{{{{{{yyyyyxxvqrpp`            7                             vyzz{{{{||||||||
~gfd_V Z^\MWUN><                                            ntwxyzz{{{{||||||||
~{{{{{{{yyyyyxxvqrpp`            7                             vyzz{{{{||||||||
~|{{{{{{{{zzzzzzxxxutod        jqn                              Yyz{{{{||||||||
~}|||{{{{{{{{zzzzyxwsnlqtrXibtvvutg                             uxz{{{||||||||}
~~||||||||||{{{{zzyutxyyyyxxxxxxxwuq                          Fvvxz{{|||||||||}
~~}||||||||||||||||{{zzzzzzzzzzyyyxwuto                    4  Vxyzz{{||||||||}}
~~~}}||||||||||||||||||{{{{{zzzzzyyxwehBBrn              rutjtVtyz{||||||||}}}}
~~~~}}}|||||||||||||||||||{{{{{{{{zzyxxxxxxwvuq      tvwxyyyyyyz{{|||||||}}}}}}
~~~~~}}}}||||||||||||||||||||{{{{{{{{{zzzyyyxvqO    elwyzzzzz{{{{||||||}}}}}}}}
~~~~~~}}}}}|||||||||||||||||||||{{{{{{{{{zzzzyxwvrdtwxyzz{{{{{{||||||}}}}}}}}}}
~~~~~~~~}}}}}}}|||||||||||||||||||||{{{{{{{{zzyyorwxwy{{{{{{|||||}}}}}}}}}}}}}}
~~~~~~~~~~}}}}}}}}}||||||||||||||||||||||{{{{{zxyzz{{{{{|||||}}}}}}}}}}}}}}}}}}


I hope it comes out right..

Very interesting idea, placing a program into your sig.
Question, where did you get that? Did _you_ write it?
_________________
Principal Software Architect
Rambling Indie Games, LLC

See my professional portfolio
Back to top  
DeveloperX
202192397


Joined: 04 May 2003
Posts: 1626
Location: Decatur, IL, USA

PostPosted: Wed Nov 03, 2004 10:46 am    Post subject: [quote]

Hey, I wrote a version with graphics.
You need allegro to compile it though.
Code:

#include <allegro.h>

float Longing, Integrity, Quest, Never, Obstruction;
int Energy;

#define RANGE_BEGIN  1.25
#define RANGE_END    -1.25
#define IMAGEWIDTH   639.0
#define IMAGEHEIGHT  (479.0*2)
int main()
{
 allegro_init();
 install_keyboard();
 set_color_depth(8);
 set_gfx_mode(GFX_AUTODETECT_WINDOWED, 640, 480, 0, 0);
 BITMAP*db=create_bitmap(640,480);clear_bitmap(db);

 int Y = 0;
 int X = 0;
 Integrity = RANGE_BEGIN;
 while(Integrity >= RANGE_END)
 {
  for(Longing = -2; Longing <= 1; Longing += 3 / IMAGEWIDTH)
  {
  Quest = 0;
  Never = 0; 
  for(Energy = 127; Quest * Quest+ Never * Never < 4.0 && -- Energy > 32;)
  {
   Obstruction = Quest;
   Quest = Quest * Quest - Never * Never + Longing;
   Never = 2 * Obstruction * Never + Integrity;
  }
  //putchar(Energy);
  putpixel(db, X, Y, Energy);
  X = X + 1;
 }
 //putchar(10);
 Y = Y + 1;
 X = 0;
 Integrity -= 5 / IMAGEHEIGHT;
 }
 blit(db,screen,0,0,0,0,640,480);
 readkey();
 destroy_bitmap(db);
 return 0;
}
END_OF_MAIN()


here is the image if you don't want to compile.

:)
_________________
Principal Software Architect
Rambling Indie Games, LLC

See my professional portfolio
Back to top  
white_door
Icemonkey


Joined: 30 May 2002
Posts: 243
Location: New Zealand

PostPosted: Wed Nov 03, 2004 7:09 pm    Post subject: [quote]

Quote:
Albeit it is incomplete, you need to include the header file. :)


You don't need to include a header if its a C file.
Back to top  
Mandrake
elementry school minded asshole


Joined: 28 May 2002
Posts: 1341
Location: GNARR!

PostPosted: Wed Nov 03, 2004 7:19 pm    Post subject: [quote]

YOu need to include math.h, I think.
_________________
"Well, last time I flicked on a lighter, I'm pretty sure I didn't create a black hole."-
Xmark

http://pauljessup.com
Back to top  
Bjorn
Demon Hunter


Joined: 29 May 2002
Posts: 1425
Location: Germany

PostPosted: Wed Nov 03, 2004 7:22 pm    Post subject: [quote]

Mandrake wrote:
YOu need to include math.h, I think.

For putchar? No, you don't need to include anything as white_door said.
Back to top  
Mandrake
elementry school minded asshole


Joined: 28 May 2002
Posts: 1341
Location: GNARR!

PostPosted: Wed Nov 03, 2004 7:26 pm    Post subject: [quote]

no, your right. Another one I had you needed to include math.h (or something like that) it wasn't in the actual sig line because of the length of the code versus the size of the sig.
_________________
"Well, last time I flicked on a lighter, I'm pretty sure I didn't create a black hole."-
Xmark

http://pauljessup.com
Back to top  
XMark
Guitar playin' black mage


Joined: 30 May 2002
Posts: 870
Location: New Westminster, BC, Canada

PostPosted: Wed Nov 03, 2004 7:51 pm    Post subject: [quote]

All I needed to include was iostream.
_________________
Mark Hall
Abstract Productions
I PLAYS THE MUSIC THAT MAKES THE PEOPLES FALL DOWN!
Back to top  
DrunkenCoder
Demon Hunter


Joined: 29 May 2002
Posts: 559

PostPosted: Wed Nov 03, 2004 11:42 pm    Post subject: [quote]

if you compile it as plain C you shouldn't need to include anything, oh and on a side note it's quite possible to shorten it quite a bit...
_________________
If there's life after death there is no death, if there's no death we never live. | ENTP
Back to top  
DeveloperX
202192397


Joined: 04 May 2003
Posts: 1626
Location: Decatur, IL, USA

PostPosted: Thu Nov 04, 2004 5:14 am    Post subject: [quote]

heh, so I was wrong. :P

And yet, amazingly, not one of you commented on the graphical version. :P

very strange indeed. go figure.
_________________
Principal Software Architect
Rambling Indie Games, LLC

See my professional portfolio
Back to top  
Bjorn
Demon Hunter


Joined: 29 May 2002
Posts: 1425
Location: Germany

PostPosted: Thu Nov 04, 2004 11:36 am    Post subject: [quote]

DeveloperX wrote:
heh, so I was wrong. :P

And yet, amazingly, not one of you commented on the graphical version. :P

very strange indeed. go figure.

Well the image was ok, just didn't have anything to say about it. I've seen too many of these programs already I think, of varying quality. Some were nice in that they'd be able to show a lot more variations and ability to zoom in and such. Check out XaoS for example, it's the smoothest and best I've ever seen.
Back to top  
Terry
Spectral Form


Joined: 16 Jun 2002
Posts: 798
Location: Dublin, Ireland

PostPosted: Thu Nov 04, 2004 1:35 pm    Post subject: [quote]

Have you ever seen the text version of Xaos? Unbelievable :)
_________________
http://www.distractionware.com
Back to top  
Bjorn
Demon Hunter


Joined: 29 May 2002
Posts: 1425
Location: Germany

PostPosted: Thu Nov 04, 2004 7:07 pm    Post subject: [quote]

Chaotic Harmony wrote:
Have you ever seen the text version of Xaos? Unbelievable :)

Ah, hadn't checked out the aa driver yet, pretty neat indeed.
Back to top  
Post new topic Reply to topic Page 1 of 1 All times are GMT
 



Display posts from previous:   
Jump to:  
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
You cannot vote in polls in this forum