Talk about absolutely anything here!
  • User avatar
  • User avatar
  • User avatar
  • User avatar
  • User avatar
  • User avatar

Am I insane?

Yes
47
77%
No
14
23%
#150419
Code: Select all
#include <stdio.h>
#include <stdlib.h>
#include <fstream>

const int imageSize = 512;
const int maxIteration = 256;

void saveImage( int imageData[][imageSize] );

int main( int argc, char** argv )
{
	if( argc == 4 )
	{
		double Re0, Im0, Re1, Im1, RIncrement, IIncrement;
		int image [imageSize][imageSize];
		double tempx, x, y, x0, y0;
		int iteration;
		
		Re0 = atof(argv[1]);
		Im0 = atof(argv[2]);
		Re1 = atof(argv[3]);
		Im1 = Im0 + (Re1 - Re0);
			
		RIncrement = ( Re1 - Re0 )/ imageSize;
		IIncrement = ( Im1 - Im0 )/ imageSize;
		
		for( int i = 0; i < imageSize; i++ )
			for( int j = 0; j < imageSize; j++ )
			{
				x0 = Re0 + i * RIncrement;
				y0 = Im0 + j * IIncrement;
				
				x = y = 0;
				iteration = 0;
				while( x * x + y * y < 4 && iteration < maxIteration )
				{
					tempx = x*x - y*y + x0;
					y = 2 * x * y + y0;
					x = tempx;
					iteration++;
				}
				
				image[i][j] = iteration;
			}
			
		saveImage(image);
	}

	return 0;
}

void saveImage( int imageData[][imageSize] )
{
	std::fstream file;
	file.open("mandelbrot.ppm", std::fstream::out);
	
	file << "P3\n" << imageSize << " " << imageSize << "\n" << maxIteration << "\n";
	
	for( int i = 0; i < imageSize; i++ )
		for( int j = 0; j < imageSize; j++ )
			file << (imageData[j][i] + 32) % 128 << " " << 0 << " " << (imageData[j][i] + 32) % 216 << "\n";
			
	file.close();
}
^ Mandelbrot :3

The .ppm format can be opened in Gimp, by the way. :3
#150723
faldette wrote:
Code: Select all
#include <stdio.h>
#include <stdlib.h>
#include <fstream>

const int imageSize = 512;
const int maxIteration = 256;

void saveImage( int imageData[][imageSize] );

int main( int argc, char** argv )
{
	if( argc == 4 )
	{
		double Re0, Im0, Re1, Im1, RIncrement, IIncrement;
		int image [imageSize][imageSize];
		double tempx, x, y, x0, y0;
		int iteration;
		
		Re0 = atof(argv[1]);
		Im0 = atof(argv[2]);
		Re1 = atof(argv[3]);
		Im1 = Im0 + (Re1 - Re0);
			
		RIncrement = ( Re1 - Re0 )/ imageSize;
		IIncrement = ( Im1 - Im0 )/ imageSize;
		
		for( int i = 0; i < imageSize; i++ )
			for( int j = 0; j < imageSize; j++ )
			{
				x0 = Re0 + i * RIncrement;
				y0 = Im0 + j * IIncrement;
				
				x = y = 0;
				iteration = 0;
				while( x * x + y * y < 4 && iteration < maxIteration )
				{
					tempx = x*x - y*y + x0;
					y = 2 * x * y + y0;
					x = tempx;
					iteration++;
				}
				
				image[i][j] = iteration;
			}
			
		saveImage(image);
	}

	return 0;
}

void saveImage( int imageData[][imageSize] )
{
	std::fstream file;
	file.open("mandelbrot.ppm", std::fstream::out);
	
	file << "P3\n" << imageSize << " " << imageSize << "\n" << maxIteration << "\n";
	
	for( int i = 0; i < imageSize; i++ )
		for( int j = 0; j < imageSize; j++ )
			file << (imageData[j][i] + 32) % 128 << " " << 0 << " " << (imageData[j][i] + 32) % 216 << "\n";
			
	file.close();
}
^ Mandelbrot :3

The .ppm format can be opened in Gimp, by the way. :3
I understand 1% of this :P
#151520
This thread hurts my mind. Maybe i lack the mental capacity to understand even a quarter of the stuff that comes out of dlgn's mouths but my friends tell me i'm weird/insane but after reading this thread in its mind warping glory weirdness has just been taken to a whole new level!
#151521
nightmarelord11 wrote:This thread hurts my mind. Maybe i lack the mental capacity to understand even a quarter of the stuff that comes out of dlgn's mouths but my friends tell me i'm weird/insane but after reading this thread in its mind warping glory weirdness has just been taken to a whole new level!
Image

Thanks! :)

An excerpt from my buddy chat logs on Superbowl Sunday. Spoilered for R-rated content.
Spoiler:
02/04/13 10:35:41: §6<Buddy> §fdlgn: >:D
02/04/13 10:50:32: §6<Buddy> §fdlgn: or flan saying she likes gay porn
02/04/13 10:50:36: §6<Buddy> §fdlgn: which is really weird
02/04/13 10:50:40: §6<Buddy> §fcockroach14: huh?
02/04/13 10:50:41: §6<Buddy> §fradioactivewaste: LOL
02/04/13 10:50:58: §6<Buddy> §fdlgn: long story roach
02/04/13 10:51:02: §6<Buddy> §fdlgn: were you on last night?
02/04/13 10:51:03: §6<Buddy> §fcockroach14: wtf dlgn
02/04/13 10:51:05: §6<Buddy> §fcockroach14: no
02/04/13 10:51:08: §6<Buddy> §fdlgn: oh
02/04/13 10:51:12: §6<Buddy> §fdlgn: then you wouldn
02/04/13 10:51:18: §6<Buddy> §fdlgn: wouldn't get it
02/04/13 10:51:27: §6<Buddy> §fdlgn: it was all eah's fault
02/04/13 10:51:34: §6<Buddy> §fcockroach14: oh gosh. what did eah do
02/04/13 10:51:48: §6<Buddy> §fdlgn: someone said the superbowl was "gay"
02/04/13 10:51:55: §6<Buddy> §feah2119: rofl
02/04/13 10:51:58: §6<Buddy> §fdlgn: and eah said that two men having sex was gay
02/04/13 10:51:59: §6<Buddy> §feah2119: I have the logs
02/04/13 10:52:05: §6<Buddy> §fcockroach14: lolololol
02/04/13 10:52:07: §6<Buddy> §fdlgn: then flan said that was her favorite sport to watch
02/04/13 10:52:12: §6<Buddy> §fdlgn: and i was like "wtf"
02/04/13 10:52:13: §6<Buddy> §fcockroach14: LOL
02/04/13 10:52:20: §6<Buddy> §fcockroach14: LOL
02/04/13 10:52:20: §6<Buddy> §fcockroach14: LOL
02/04/13 10:52:41: §6<Buddy> §fradioactivewaste: I was talking about female oil wrestling and then flan said that was her fav when eah said gay
02/04/13 10:52:46: §6<Buddy> §fradioactivewaste: football
02/04/13 10:52:56: §6<Buddy> §fcockroach14: Eah :p
02/04/13 10:54:04: §6<Buddy> §fdlgn: I LOVE YOU CUBE
02/04/13 10:54:05: §6<Buddy> §fdlgn: I LOVE YOU CUBE
02/04/13 10:54:05: §6<Buddy> §fdlgn: I LOVE YOU CUBE
02/04/13 10:54:06: §6<Buddy> §fdlgn: I LOVE YOU CUBE
02/04/13 10:54:07: §6<Buddy> §fdlgn: I LOVE YOU CUBE
02/04/13 10:54:11: §6<Buddy> §fcockroach14: I LOVE YOU CUBE
02/04/13 10:54:12: §6<Buddy> §fcockroach14: I LOVE YOU CUBE
02/04/13 10:54:15: §6<Buddy> §fdlgn: I LOVE YOU CUBE
02/04/13 10:54:15: §6<Buddy> §fdlgn: I LOVE YOU CUBE
02/04/13 10:54:16: §6<Buddy> §fdlgn: I LOVE YOU CUBE
02/04/13 10:54:16: §6<Buddy> §fdlgn: I LOVE YOU CUBE
02/04/13 10:54:17: §6<Buddy> §fdlgn: I LOVE YOU CUBE
02/04/13 10:54:23: §6<Buddy> §fradioactivewaste: LOOP HOLE I LOVE YOU CUBE
02/04/13 10:54:25: §6<Buddy> §fradioactivewaste: LOOP HOLE I LOVE YOU CUBE
02/04/13 10:54:27: §6<Buddy> §fradioactivewaste: LOOP HOLE I LOVE YOU CUBE
02/04/13 10:54:31: §6<Buddy> §fdlgn: what loophole?
02/04/13 10:54:33: §6<Buddy> §fcockroach14: I bet cube has already /ignored us all.
02/04/13 10:54:34: §6<Buddy> §fcubeguy314: turning off buddy chat
02/04/13 10:54:37: §6<Buddy> §fdlgn: lol
02/04/13 10:54:42: §6<Buddy> §fcubeguy314: afk for a bit
02/04/13 10:54:45: §6<Buddy> §fradioactivewaste: He turned off guild chat not buddy :D
02/04/13 10:54:58: §6<Buddy> §fdlgn: AHAHAHAHA
02/04/13 10:55:03: §6<Buddy> §feah2119: frsty started it actually
02/04/13 10:55:08: §6<Buddy> §fdlgn: really?
02/04/13 10:55:11: §6<Buddy> §fcockroach14: Frosty? started what?
02/04/13 10:55:12: §6<Buddy> §fdlgn: how?
02/04/13 10:55:18: §6<Buddy> §feah2119: ffrostybirth: FOOTBALL IS GAY
02/04/13 10:55:22: §6<Buddy> §fdlgn: oh yeah
02/04/13 10:55:31: §6<Buddy> §fcockroach14: Yeah i remember that.
02/04/13 10:55:32: §6<Buddy> §fdlgn: but you said that football was gay men having sex
02/04/13 10:55:38: §6<Buddy> §fdlgn: essentially
02/04/13 10:55:45: §6<Buddy> §fdlgn: god
02/04/13 10:55:46: §6<Buddy> §fradioactivewaste: True ^
02/04/13 10:55:48: §6<Buddy> §fdlgn: we're weird
02/04/13 10:55:53: §6<Buddy> §fradioactivewaste: True ^
02/04/13 10:55:54: §6<Buddy> §feah2119: radioactivewaste: Wrestling is gay.
02/04/13 10:56:01: §6<Buddy> §fradioactivewaste: True ^
02/04/13 10:56:04: §6<Buddy> §fdlgn: i love you guys
02/04/13 10:56:08: §6<Buddy> §fradioactivewaste: True ^
02/04/13 10:56:09: §6<Buddy> §fdlgn: much homo
02/04/13 10:56:10: §6<Buddy> §feah2119: eah2119: ^ that's true
02/04/13 10:56:11: §6<Buddy> §fdlgn: and hetero
02/04/13 10:56:15: §6<Buddy> §fcockroach14: lol
02/04/13 10:56:19: §6<Buddy> §feah2119: eah2119: wrestling i gay
02/04/13 10:56:22: §6<Buddy> §fradioactivewaste: True ^
02/04/13 10:56:27: §6<Buddy> §fcockroach14: True ^
02/04/13 10:56:29: §6<Buddy> §feah2119: eah2119: half naked men touching each other is gay
02/04/13 10:56:33: §6<Buddy> §fradioactivewaste: I can have a convo using True ^
02/04/13 10:56:34: §6<Buddy> §fdlgn: right
02/04/13 10:57:06: §6<Buddy> §feah2119: radioactivewaste: Unless its female oil wrestling. That i can watch
02/04/13 10:57:20: §6<Buddy> §fradioactivewaste: Wrestling is the equivalnt of volleyball for guys: Everything outlined in spandex
02/04/13 10:57:21: §6<Buddy> §feah2119: FlannyFlan: wait what radio?
02/04/13 10:57:32: §6<Buddy> §feah2119: FlannyFlan: *stare*
02/04/13 10:58:51: §6<Buddy> §feah2119: and that converstation lasted for 13 minutes
02/04/13 10:58:55: §6<Buddy> §fdlgn: mhm
02/04/13 10:59:07: §6<Buddy> §fdlgn: I told my mom about it
02/04/13 10:59:11: §6<Buddy> §fcockroach14: lol
02/04/13 10:59:11: §6<Buddy> §fradioactivewaste: I <3 Us
02/04/13 10:59:12: §6<Buddy> §fdlgn: and she was like O_O
02/04/13 10:59:19: §6<Buddy> §feah2119: lol
02/04/13 10:59:22: §6<Buddy> §fdlgn: and then O_-
02/04/13 10:59:26: §6<Buddy> §fdlgn: and then -_-
02/04/13 10:59:31: §6<Buddy> §fcockroach14: what influenced you to share that information with your mom?
02/04/13 10:59:37: §6<Buddy> §fdlgn: and then she went back to watching football
02/04/13 10:59:43: §6<Buddy> §fradioactivewaste: THen she put on her huburlurbaderpa hat right
02/04/13 10:59:45: §6<Buddy> §fdlgn: I don't remember
Have fun!
#151654
Image
Don't ask...


I think I've run out of good thoughts;
It's like my brain's tied up in knots.
I've got no explanation
With any relation
To the things that I post in this spot.

I run out of ideas, I post limericks.

Image

Now, it is time for me to sit back and watch the majesty of my evil plan unfolding! Mwahahahaha! Behold, mortals, and see if you can piece together the instrument of your doom!
dlgn wrote:Augh...the pain!

Must...warn...

AGENT RED 100, DO SOMETHING!

*passes out from pain*
Ryu_Aurora wrote:We are immortal. We laugh at your claims of success. We are Aurora©orp.
http://minerealm.com/community/viewtopi ... =12&t=8931
dlgn wrote:
Magerman wrote:nice legs
That's...disturbing.
dlgn wrote:Yes...the mind control...it is WORKING!!!!!!!!

~dlgn
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 30
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]