struct Pixel
{
// Front (visible) buffer color.
float f_r;
float f_g;
float f_b;
// Back (source) buffer color.
float b_r;
float b_g;
float b_b;
// Difference buffer.
float d_r;
float d_g;
float d_b;
};
void compute_diff( Pixel* p );
void consume_diff( Pixel* p, float d, char color );
int image_width( char* file );
int image_height( char* file );
float load_pixels( Pixel** p, char* file, int width, int height );
float load_random( Pixel**p, int width, int height );
void save_pixels( Pixel** p, char* file, int width, int height );
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #4 | 4453 | Sam Stafford |
Added screenshot feature, moved SceneSaver files to home directory rather than system directory, added code to handle invalid or missing images (loading a random color instead of crashing). I think this thing's good to go. |
||
| #3 | 4446 | Sam Stafford |
Finished neural inputs, made size hereditary, auto-rotation of images once a certain amount of diffs have been consumed, saving genomes at finish. |
||
| #2 | 4433 | Sam Stafford |
More work on this little project. The AI is still nonexistent. |
||
| #1 | 4429 | Sam Stafford |
A bit of work in progress that currently works as a crude image diff tool. |