Verfügbare Informationen zu "Arrows"
Qualität des Beitrags: Beteiligte Poster: vogel Forum: Ex-2MNd Forum Forenbeschreibung: Das ex-offizielle Forum der Klasse 2MNd des Gymnasiums Neufeld - offiziell: www.2mnd.ch.vu aus dem Unterforum: Gymnasium Antworten: 1 Forum gestartet am: Donnerstag 15.02.2007 Sprache: deutsch Link zum Originaltopic: Arrows Letzte Antwort: vor 16 Jahren, 11 Monaten, 15 Tagen, 2 Stunden, 31 Minuten
Alle Beiträge und Antworten zu "Arrows"
Re: Arrows
vogel - 16.05.2007, 15:21Arrows
Code: // Program: ARROWS.CPP
// Date: 9-MAY-2007
// Author:
#include <champ.h>
#include <stdlib.h>
#include "arrows.rh"
void arrow( double x, double y );
void gmain()
{
ginit("Arrows");
gwindow( -10, 10, -10, 10 );
randomize();
for( int i=0; i<10; i++ )
arrow( random(20)-10, random(20)-10 );
getch();
gend();
}
void arrow( double x, double y )
{
if( x==0 && y==0 )
if(random(1))
x=1;
else
y=1;
/*int r, g, b;
r = random(256);
g = random(256);
b = random(256);
gpenColor( CPColor( r, g, b ) );
gfillColor( CPColor( r, g, b ) ); */
gpos( 0, 0 );
gdraw( x, y );
gfillXY( x, y );
double gross = 1-1/sqrt(x*x+y*y);
double klein = 0.5/sqrt(x*x+y*y);
gdraw( gross*x+klein*y, gross*y-klein*x );
gdraw( gross*x-klein*y, gross*y+klein*x );
gdraw( x, y );
gfillOff();
}
Mit folgendem Code, können Sie den Beitrag ganz bequem auf ihrer Homepage verlinken
Weitere Beiträge aus dem Forum Ex-2MNd Forum
Mouse O Meter - gepostet von heavyraptor am Freitag 01.06.2007
Unendliche Geschichte... - gepostet von JomBo am Freitag 16.02.2007
scheiss ufsatz - gepostet von JomBo am Dienstag 01.05.2007
Läseprotokoll: Katherina Blum oder so - gepostet von mätthu am Sonntag 13.05.2007
Ähnliche Beiträge wie "Arrows"
Minardi- Arrows - Anonymous (Samstag 10.07.2004)
buyin iron + arrows - demonwolf456 (Donnerstag 17.11.2005)
Honda-B-Team mit alten Arrows - Helmut 318 is (Mittwoch 23.11.2005)
Buying arrows! - demonwolf456 (Donnerstag 05.01.2006)
addy arrows - demonwolf456 (Freitag 20.01.2006)
Burning Arrows DSAB Statistik - schimbi (Mittwoch 29.11.2006)
arrows - glurak6 (Samstag 30.12.2006)
99 Addy Arrows - sternchen (Sonntag 14.01.2007)
Rush-Snakes And Arrows - Ozzy (Montag 21.05.2007)
B>Loki's Whisper / Arrows of Shadow - Percius (Sonntag 24.06.2007)