Beispiel #1
0
void PointPlotter::PlotPoint(JPoint * point)
{
    double x=point->getX();
    double y=point->getY();
    double z=point->getZ();

    unsigned char r=point->getR();
    unsigned char b=point->getB();
    unsigned char g=point->getG();
    PlotPoint( x,  y,  z, r,   g,   b);
}
Beispiel #2
0
Datei: t.c Projekt: adammaj1/c
// fill array 
// uses global var :  ...
// scanning complex plane 
int ComputeFatouComponents(unsigned char A[], int IterationMax )
{
  unsigned int ix, iy; // pixel coordinate 

  //printf("compute image \n");
  // for all pixels of image 
  for(iy = iyMin; iy<=iyMax; ++iy) 
    { //printf(" %d z %d\n", iy, iyMax); //info 
      for(ix= ixMin; ix<=ixMax; ++ix) PlotPoint(A, ix, iy, IterationMax ) ; //  
    } 
   
  return 0;
}
Beispiel #3
0
void STDPGroup::Init(int numNeu, int id, RGB baseCol) {
    this->id = id; //set the ID of this group
    this->baseCol = baseCol;
	//generate the new neurons
	groupPos = PlotPoint(0,0,0);

	for (int neuron_counter = 0; neuron_counter<numNeu; neuron_counter++)
	{
		neurons.push_back(new STDPNeuron(id,this->baseCol));
		neurons[neuron_counter]->id = neuron_counter;
	}
    
}
Beispiel #4
0
void Group::Init(int numNeu, int id,RGB basecol)
{
	this->id = id; //set the ID of this group
	baseCol = basecol;
	//generate the new neurons
        groupPos = PlotPoint(0,0,0);

	for (int neuron_counter = 0; neuron_counter<numNeu; neuron_counter++)
	{
		Neuron* neuron = new Neuron(id,baseCol);
        neurons.push_back(neuron);
        neuron->id = neuron_counter;
	}
}