1
0
mirror of https://gitlab.com/klmp200/LO27.git synced 2024-11-05 08:18:03 +00:00
LO27/matrixmain.c
2016-12-28 23:59:43 +01:00

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;
}