mirror of
https://gitlab.com/klmp200/LO27.git
synced 2024-11-05 08:38:03 +00:00
34 lines
833 B
C
34 lines
833 B
C
/*********************************************************************************
|
|
* File Name : main.c
|
|
* Created By : klmp200
|
|
* Creation Date : [2016-12-10 01:06]
|
|
* Last Modified : [2016-12-10 01:07]
|
|
* Description :
|
|
**********************************************************************************/
|
|
|
|
#include <SDL2/SDL.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <matrix.h>
|
|
#include <pixel.h>
|
|
|
|
int main(){
|
|
Matrix m1 = CreateMatrix();
|
|
int rules[] = {2, 32, 8, 128};
|
|
Matrix m2;
|
|
BooleanMatrix bmatrix = CreateBooleanMatrix(300, 300);
|
|
|
|
bmatrix = RandomizeBooleanMatrix(bmatrix);
|
|
m1 = newMatrix(bmatrix);
|
|
FreeBooleanMatrix(bmatrix);
|
|
|
|
NewWindowFromMatrix(m1);
|
|
|
|
m2 = matrixFromRules(m1, 4, rules);
|
|
freeMatrix(m1);
|
|
freeMatrix(m2);
|
|
|
|
return 0;
|
|
|
|
}
|